I saw topics discussing this, but no one seemed to post a solution. I am currently testing transfer parameters for my .Net web service. When the parameters reach the web service, he adds it with an extra line, and then returns it to my application too; but all I return is a string message, not the parameter I passed. Is there something wrong with my web service or my soap method?
Soap:
SoapObject request = new SoapObject (NAMESPACE, METHOD_NAME);
request.addProperty("A", "workowr");
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try {
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapPrimitive result = (SoapPrimitive) envelope.getResponse();
String resultData = result.toString();
testTV.setText(resultData);
}
catch(Exception e)
{
testTV.setText(e.getMessage());
}
Here is my simple .Net web service:
Public function getRegInfo (ByVal A As String) As String
Return A + String Message
Final function
I would appreciate any help.