Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final String SOAP_ACTION = "http://test.app.org/";;
- public final String OPERATION_NAME = "Login";
- public final String WSDL_TARGET_NAMESPACE = "http://test.app.org/";
- public final String SOAP_ADDRESS = "https://abc.test.com/ws/webservice/Service1.asmx";
- SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);
- PropertyInfo pi=new PropertyInfo();
- pi.setName("name");
- pi.setValue(name);
- pi.setType(String.class);
- request.addProperty(pi);
- pi=new PropertyInfo();
- pi.setName("password");
- pi.setValue(password);
- pi.setType(String.class);
- request.addProperty(pi);
- SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
- SoapEnvelope.VER11);
- envelope.dotNet = true;
- envelope.setOutputSoapObject(request);
- HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
- Object response=null;
- try
- {
- httpTransport.call(SOAP_ACTION+OPERATION_NAME, envelope);
- response = envelope.getResponse();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement