You should use the ksoap2 jar file. And then use the following code
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS); SoapObject response=null; try { httpTransport.call(SOAP_ACTION, envelope); response = (SoapObject) envelope.bodyIn;
source share