Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Java
SoapObject request=new SoapObject(NAMESPACE,WebMethodName);
PropertyInfo sayHellopi=new PropertyInfo();

sayHellopi.setName("get");
sayHellopi.setValue(na);
sayHellopi.setType(String.class);

request.addProperty(sayHellopi);

SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);

AndroidHttpTransport transp = new AndroidHttpTransport(URL);

try {
   transp.call(SOAP_ACTION,envelope);
   //ArrayList primitive= (ArrayList) envelope.bodyIn;
   SoapObject primitive= (SoapObject) envelope.bodyIn;
           
   arraylist=new ArrayList<string>();

   for(int i=0;i<primitive.getpropertycount();i++){>
      arraylist.add((String) primitive.getProperty(i));
      //arraylist.add(primitive.getProperty(i).toString());
      //arraylist.add(primitive.getPropertyCount());
      System.out.println("ForLoop--------------"+primitive.getProperty(i));

      // System.out.println("is result null????????????"+arrayList.listIterator());
   }
            
}catch (Exception e){
   System.out.println("Error Value" + e);
   //resText="Error Occur";
   e.printStackTrace();
 }
Posted
Updated 11-May-14 23:20pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900