//WebService's namespace
static final String namespace = "";
//The URL published by the server
static final String url = http://10.100.3.41/axis2/services/UploadService;
final String methodName = "upload"; // Function name
final int sessionID = "111111"; //sessionID
//Create the HttpTransportSE object, and the URL of the WebService can be specified through the HttpTransportSE class constructor method.
HttpTransportSE transport = new HttpTransportSE(url);
= true;
//Specify the namespace and function name of the WebService
SoapObject soapObject = new SoapObject(namespace, methodName);
//Set the value of the calling method parameter
("sessionID", sessionID); //sessionID
("data", cds); //cds is the object that needs to be passed
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
= transport;
(soapObject);
//Calling the WebService method using the call method
(null, envelope);
SoapObject sb = (SoapObject) ;
String xmlMessage = (); // Get the XML string returned from the server side