Forwarded message
From: iceal thaddeus lim <iceal.thaddeus.lim (AT) gmail (DOT) com>
Date: Jul 7, 2006 5:44 PM
Subject: org.apache.crimson.tree.DomEx: WRNG_DCUMENT_ERR: That node
doesn't belong in this document.
To: axis-user (AT) ws (DOT) apache.org
Hi All,
I created a WS client using axis. I WSDL2Java a webservice.
Then used it as
ServiceChargingGateway service = new ServiceChargingGatewayLocator();
ServiceChargingGatewaySoap message = ();
BillingResponse response = message.eventCharge(msisdn, contentId, partnerId,
ratingId, externalTransactionId, description, contentType);
But I got an exception (see below).
I checked the exception in google and the solution was
"Failing to use the Document.importNode() method."
"First of all t use crimson as XML parser it can you give some head
aches. Anyway, your problem can be fix by using doc.importNode function. But
I don't understand your intends."
and so on
How will I use this in Axis since when I checked the code it was,
If importNode is the answer, where will I add it?
public class ServiceChargingGatewaySoapStub extends
org.apache.axis.client.Stub implements
{
.
.
.
public (
java.lang.String msisdn, java.lang.String contentID, java.lang.StringpartnerID,
java.lang.String ratingID, java.lang.String externalTransactionID,
java.lang.String description, java.lang.String contentType) throws
java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new ();
}
org.apache.axis.client.Call _call = createCall();
(_operations[0]);
_call.setUseSAPAction(true);
_call.setSAPActionURI("
");
_call.setEncodingStyle(null);
_call.setProperty( ,
Boolean.FALSE);
_call.setProperty(,
Boolean.FALSE);
_call.setSAPVersion(
);
Name(new javax.xml.namespace.QName("
", "eventCharge"));
setRequestHeaders(_call);
setAttachments(_call);
try { _resp = _call.invoke(new []
{msisdn, contentID, partnerID, ratingID, externalTransactionID, description,
contentType});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (
) _resp;
} catch (java.lang.Exception _exception) {
return (
)
(_resp,
);
}
}
} catch (org.apache.axis.AxisFault axisFaultException) {
throw axisFaultException;
}
}
}
#RemoteException#; nested exception is:
org.apache.crimson.tree.DomEx : WRNG_DCUMENT_ERR: That node
doesn't belong in this document.
27837122534
AxisFault
faultCode: {}Server.userException
<%7DServer.userException>
faultSubcode:
faultString: org.apache.crimson.tree.DomEx: WRNG_DCUMENT_ERR: That node
doesn't belong in this document.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}
<http://xml.apache.org/axis/%>:
WRNG_DCUMENT_ERR: That node doesn't belong in this document.
at (ParentNode.java:238)
at (ParentNode.java
:333)
at (
SAPFaultBuilder.java:305)
at (
)
at (Parser2.java:1712)
at (Parser2.java:1963)
at (Parser2.java
:1691)
at (Parser2.java:1963)
at (Parser2.java:1691)
at (Parser2.java:1963)
at (Parser2.java:1691)
at (Parser2.java:667)
at (Parser2.java:337)
at (XMLReaderImpl.java
:448)
at (SAXParser.java:345)
at (
DeserializationContext.java :227)
at (SAPPart.java:696)
at (Message.java:435)
at (
MustUnderstandChecker.java :62)
at (AxisClient.java:206)
at (Call.java:2784)
at (Call.java:2767)
at (Call.java:2443)
at (Call.java:2366)
at (Call.java:1812)
at
()
at (
)
at (
EventBillingRetryDriver.java :386)
{http://xml.apache.org/axis/}
<http://xml.apache.org/axis/%>
org.apache.crimson.tree.DomEx: WRNG_DCUMENT_ERR: That node doesn't belong
in this document.
at (AxisFault.java:101)
at (SAPPart.java:701)
at (Message.java:435)
at (
MustUnderstandChecker.java:62)
at (AxisClient.java:206)
at (Call.java:2784)
at (Call.java:2767)
at (Call.java:2443)
at (Call.java:2366)
at (Call.java:1812)
at
( :176)
at (
)
at (
)
Caused by: org.apache.crimson.tree.DomEx: WRNG_DCUMENT_ERR: That node
doesn't belong in this document.
at (ParentNode.java
:238)
at (ParentNode.java
:333)
at (
SAPFaultBuilder.java :305)
at (
)
at (Parser2.java:1712)
at (Parser2.java:1963)
at (Parser2.java:1691)
at (Parser2.java:1963)
at (Parser2.java:1691)
at (Parser2.java:1963)
at (Parser2.java:1691)
at (Parser2.java:667)
at (Parser2.java:337)
at (XMLReaderImpl.java
:448)
at (SAXParser.java:345)
at (
)
at (SAPPart.java:696)
11 more