2011-11-23 239 views
1
11-23 16:19:30.085: SoapFault - faultcode: 'S:Client' faultstring: 'Couldn't create SOAP message due to exception: Unable to create StAX reader or writer' faultactor: 'null' detail: null 
11-23 16:19:30.085: at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:121) 
11-23 16:19:30.085: at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:137) 
11-23 16:19:30.085: at org.ksoap2.transport.Transport.parseResponse(Transport.java:63) 
11-23 16:19:30.085: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:104) 
11-23 16:19:30.085: at com.mobilebox.webservice.CommonWSClient.callWS(CommonWSClient.java:247) 
11-23 16:19:30.085: at com.mobilebox.webservice.CommonWSClient.access$1(CommonWSClient.java:217) 
11-23 16:19:30.085: at com.mobilebox.webservice.CommonWSClient$WSHandle.run(CommonWSClient.java:201) 
11-23 16:19:30.085: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) 
11-23 16:19:30.085: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) 
11-23 16:19:30.085: at java.lang.Thread.run(Thread.java:1019) 

我的Android應用程序使用Soap webservice客戶端來調用遠程方法。有時候,它會像上面那樣返回excepion。當我用SoapUI調用它時,它永遠不會出現。soapfault:無法創建SOAP消息

+1

可以粘貼在這裏的一些代碼?所以我們可以幫助你解決問題。 –

回答

0

我發現,這是來自服務器的響應錯誤消息。 我會繼續找出爲什麼會有這樣的錯誤。

服務器響應:

<?xml version="1.0" ?> 
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> 
    <S:Body> 
     <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"> 
      <faultcode>S:Client</faultcode> 
      <faultstring>Couldn't create SOAP message due to exception: Unable to create StAX reader or writer</faultstring> 
     </S:Fault> 
    </S:Body> 
</S:Envelope>