Code:
SoapObject request = new SoapObject(NAMESPACE, SOAP_METHOD_GETDATATBL);
request.addProperty(\"TName\", ttnm);
request.
Try below code..
HttpTransportSE transporter;
SoapSerializationEnvelope envelope;
SoapObject mSoapObject = null;
String METHOD_NAME = getString(R.string.soap_method_authentication);
try {
mSoapObject = new SoapObject(getString(R.string.soap_namespace),METHOD_NAME);
mSoapObject.addProperty("TName", "test");
mSoapObject.addProperty("ColumnNameStr", "*");
transporter = new HttpTransportSE(getString(R.string.soap_main_url));
envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(mSoapObject);
transporter.call(getString(R.string.soap_namespace) + METHOD_NAME, envelope);
SoapObject response = (SoapObject) envelope.bodyIn;
System.out.println("Response : " + response);
} catch (Exception e) {
mTextView.setText("Error...");
e.printStackTrace();
}
String.xml
your_main_url
http://tempuri.org/GetDataTbl/
GetDataTbl