安卓调用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: org.kxml2.kdom.Node@40662450javascript:void(0) - 如图
- 方法名没写对(我犯的就是这个错误)
webservice相关参考: