1 2 3 4 5 6 7 8 9 10 11 12 13
| String Name_Space="http://localhost";
String Method_Name="HelloWorld";
String Soap_Action="http://localhost/HelloWorld";
String URL="http://localhost/WebServiceTest/Service1.asmx";
SoapObject request = new SoapObject(Name_Space, Method_Name);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(Soap_Action, envelope);
// Get response from envelope
String result = envelope.getResponse().toString(); |