我正在從Apache Axis 1.4 Java客戶端調用Web服務。該呼叫正確到達服務器,但客戶在大約幾分鐘後拋出此異常:SAXParseException:XML文檔結構必須在同一實體內開始和結束
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
faultActor:
faultNode:
faultDetail:
異常並不總是相同。有時它指定了響應中的特定元素:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: The element type "name" must be terminated by the matching end-tag "</name>".
faultActor:
faultNode:
faultDetail:
我正在進行的Web服務調用返回大量數據。如果我將服務器配置爲返回更少的數據,則呼叫會成功完成。
注意:儘管我沒有收到任何客戶端超時異常,但我嘗試將超時值增加到五分鐘,但這沒有效果。
工程就像一個魅力!謝謝@Zak! –