从Java SE客户端调用Web服务时出现奇怪错误

时间:2010-08-11 19:35:42

标签: java web-services

我有一个试图与J2EE Web服务对话的java SE客户端。我们正在使用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'");

1 个答案:

答案 0 :(得分:0)

什么是PITA。 Web服务本身存在问题。我原以为我会有一个不同的错误,可能不会在服务器端形成错误。当你还在使用Weblogic 9.2时就是这样。