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

时间:2023-01-02 21:03:09

I have a java SE client trying to talk to a J2EE web service. We are using Axis 1.4, so when I try to make a call I get the error below:

我有一个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)

Here is the call:

这是电话:

        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 个解决方案

#1


0  

What a PITA. The web service itself was having problems. I would have thought I would have got a different error, probably not forming the fault right on the server side. Such is life when you are still using Weblogic 9.2.

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

#1


0  

What a PITA. The web service itself was having problems. I would have thought I would have got a different error, probably not forming the fault right on the server side. Such is life when you are still using Weblogic 9.2.

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