Guest User

Untitled

a guest
Jun 25th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. SoapObject soapRequest = new SoapObject(NAMESPACE, METHOD_NAME);
  2. soapRequest.addProperty("Token", "uy7598hjt8798u");
  3. soapRequest.addProperty("ReferenceNo", "112");
  4. soapRequest.addProperty("Stage", "6");
  5. soapRequest.addProperty("Action", "A");
  6. soapRequest.addProperty("Remarks", "test");
  7.  
  8. SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
  9. soapEnvelope.dotNet = true;
  10. soapEnvelope.setOutputSoapObject(soapRequest);
  11.  
  12. HttpTransportSE httpTransportSE = new HttpTransportSE(URL, 100000);
  13. httpTransportSE.debug = true;
  14. httpTransportSE.call(SOAP_ACTION, soapEnvelope);
  15.  
  16. SoapObject response = (SoapObject) soapEnvelope.getResponse();
  17. String strResponse = response.toString();
Add Comment
Please, Sign In to add comment