我想尝试(并且几乎要翻转)是通过android连接到soap服务。这是我的代码:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addPropterty("###", "###");
request.addProperty("user", "####");
request.addProperty("pwd", "####");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
androidHttpTransport.debug = true;
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject response = (SoapObject) envelope.getResponse();
String resultData = response.getProperty("ort").toString();
我的私人是:
private static String SOAP_ACTION = "http://tempuri.org/Finder/Finder/###";
private static String NAMESPACE = "http://tempuri.org/Finder/Finder/";
private static String METHOD_NAME = "get##XY";
private static String URL = "http://###.at/###/Finder/Finder.asmx";
在我想获得响应的行中,我收到以下错误:
SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request. ---> Value cannot be null.
我几乎尝试过所有内容并在论坛中阅读了很多内容,但却无法找到任何对我有帮助的内容。我试图将dotNet变量设置为true / false,androidHttpTransport.debug为true / false,setXmlVersionTag是/否...
ANYBODY可以帮助我吗?