unable to access my WSDL file on my android emulator

Last Updated:

  1. krishnaveni

    krishnaveni Well-Known Member


    I have developed one android application

    this is my code:

    public class RetailerActivity extends Activity {
    private static final String SOAP_ACTION = "http://ws.testprops.com/customerData";
    private static final String METHOD_NAME = "customerData";
    private static final String NAMESPACE = "http://ws.testprops.com";
    private static final String URL = "";

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    HttpTransportSE ht = new HttpTransportSE(URL);
    try {
    ht.call(SOAP_ACTION, envelope);
    SoapPrimitive response = (SoapPrimitive)envelope.getResponse();
    SoapPrimitive s = response;
    String str = s.toString();
    String resultArr[] = str.split("&");//Result string will split & store in an array

    TextView tv = new TextView(this);
    for(int i = 0; i<resultArr.length;i++){

    } catch (Exception e) {
    [/HIGH]This is my local tomcat apache server wsdl file:


    means it is successfully worked for my emulator and android device.please see this screenshot:http://screencast.com/t/r4RISmZvL

    The same TestPrompts project only i have exported and created war file and uploaded in my tomcat server.

    This is my tomcat server wsdl file:

    But here i have faced one problem:

    I have to put these URL means doesn't getting any result on both emulator and android device.Simply am getting black blank screen only.please refer my screenshot:http://screencast.com/t/o5k1qEfQ0

    My console window shows following error:
    please help me.how can i resolve this error.

  2. jonbonazza

    jonbonazza Well-Known Member

  3. krishnaveni

    krishnaveni Well-Known Member

    I have tested on my android 2.2 device also.am getting simple blank screen only on my android device.
  4. jonbonazza

    jonbonazza Well-Known Member

    Do you have the internet permission added to your manifest?
  5. krishnaveni

    krishnaveni Well-Known Member

    Yes i have added internet permission already.

    This is my manifest file.
    please help me how can i resolve my error.

    The webservice code is given below:
    please give me some solution.how can i resolve this problem.
  6. krishnaveni

    krishnaveni Well-Known Member


    I got the solution for this after i have gave permission globally on my mysql database.so all are allowed to access my mysql database.but i wish to allow to access my mysql database myself(alone) only.others doesn't allow to access my mysql database.so this situation how can i manage security.please give me solution for this.

Share This Page