Skip to content Skip to sidebar Skip to footer

How To Create Proper Soap Envelope (request Xml) In Code While Using KSoap2?

This is the soap request as obtained from SoapUi by feeding the wsdl. Copy

to

MAIN_REQUEST_URL = "http://abc.xyz.com/WSClient/WSServiceSoapHttpPort?WSDL";
NAMESPACE = "http://wsclient.xyz.com/types/";
SOAP_ACTION = "http://wsclient.xyz.com//loginservice";

and also I had to change:

String methodname = "loginservice";

to

String methodname = "loginserviceElement";

as the request/response xml has this ( typ:loginserviceElement ) tag wrapping the properties/parameters.


Post a Comment for "How To Create Proper Soap Envelope (request Xml) In Code While Using KSoap2?"