简体   繁体   English

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

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

I have a java SE client trying to talk to a J2EE web service. 我有一个Java SE客户端试图与J2EE Web服务进行通信。 We are using Axis 1.4, so when I try to make a call I get the error below: 我们正在使用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'");

What a PITA. 真是皮塔饼。 The web service itself was having problems. Web服务本身存在问题。 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. 当您仍在使用Weblogic 9.2时,就是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM