安卓调用webservice失败解决方案

  1. 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@40662450​​​javascript:void(0)​
  2. 如图SoapFault - faultcode:
  3. 方法名没写对(我犯的就是这个错误)

 

webservice相关参考: