簡體   English   中英

從Java SE客戶端調用Web服務時出現奇怪的錯誤

[英]Weird error when calling a web service from a Java SE client

我有一個Java SE客戶端試圖與J2EE Web服務進行通信。 我們正在使用Axis 1.4,因此當我嘗試撥打電話時,出現以下錯誤:

'- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.'

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException  
faultSubcode:  
faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.  
faultActor:  
faultNode:  
faultDetail:  
{http://xml.apache.org/axis/}stackTrace:org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.  
at com.sun.org.apache.xerces.internal.dom.ParentNode.internalInsertBefore(Unknown Source)
at com.sun.org.apache.xerces.internal.dom.ParentNode.insertBefore(Unknown Source)
at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(Unknown Source)

這里是電話:

        JRD_ServiceLocator jserv = new JRD_ServiceLocator();  
        Object arc[] = jserv.getserviceport( new URL("http://vpnl3-4102.fi.com:7110/jrds/services?WSDL")).getRefDataByQuery("MDS", "FX", "CCY", "CCY='A'");

真是皮塔餅。 Web服務本身存在問題。 我本以為我會有一個不同的錯誤,可能不是在服務器端形成錯誤。 當您仍在使用Weblogic 9.2時,就是這樣。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM