2016-07-27 59 views
0

我有一個webservice使用jaxb,在客戶端中,我通過Netbean構建webservice客戶端jar文件。我的問題是,有時客戶端發送請求,但不能讀取響應對象,遵循例外:JAXB客戶端,無法讀取響應:javax.xml.bind.UnmarshalException

Failed to read a response: javax.xml.bind.UnmarshalException 
- with linked exception: 
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,36959] 
Message: Premature EOF] 
com.sun.xml.internal.ws.encoding.soap.DeserializationException: Failed to read a response: javax.xml.bind.UnmarshalException 
- with linked exception: 
[javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,36959] 
Message: Premature EOF] 
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:113) 
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) 
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107) 
+1

錯誤是在... 404 – Tibrogargan

回答

0

嘗試攔截您的XML請求和響應描述here 您可能會解決你的問題,然後。

+0

謝謝!我希望這有助於^^ – phucvm8x