我在 .NET 中有一个 Web 服务,我正在使用 ksoap2,但我没有收到 xml 响应。有什么方法可以调用服务并获取 xml 响应。?
我的代码是
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("MobileNo", "7777777");
request.addProperty("strstartdate", "2012-01-23");
request.addProperty("strenddate", "2012-01-30");
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
// envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject resultsRequestSOAP = (SoapObject)envelope.getResponse();
谢谢