安卓调用webservice失败解决方案
-
SoapObject soapObject = (SoapObject) envelope.getResponse();
使用上面这个,
SoapObject result = (SoapObject)envelope.bodyIn;
这个是服务器那边没有搞定:
1、 INFO/System.out(2185): SoapFault - faultcode: 'soapenv:Server.userException' faultstring: 'java.lang.NullPointerException' faultactor: 'null' detail: [email protected]
https://blog.csdn.net/fxtxz2/article/details/7556592 - 如图
- 方法名没写对(我犯的就是这个错误)
webservice相关参考:
https://blog.csdn.net/xiaoerbuyu1233/article/details/79461160