HttpTransportSE requestDump gives NullPointerException

前端 未结 1 1484
耶瑟儿~
耶瑟儿~ 2021-01-24 01:54

I\'m trying to access a webservice in Android via Ksoap2 for Android.

The SoapObject is created OK, the S.O.P of the bodyOu

相关标签:
1条回答
  • 2021-01-24 02:16

    You need to set the debug field of the Transport instance to true, then call the call(String,SoapEnvelope) method in order for the requestDump field to be set:

      HttpTransportSE http_transport = new HttpTransportSE(URL);
      http_transport.debug = true;
      try {
       http_transport.call(SOAP_ACTION, envelope);
       System.out.println(http_transport.requestDump);
      //...
    
    0 讨论(0)
提交回复
热议问题