axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "iceal thaddeus lim" <iceal.thaddeus....@gmail.com>
Subject org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
Date Mon, 10 Jul 2006 07:09:26 GMT
---------- Forwarded message ----------
From: iceal thaddeus lim <iceal.thaddeus.lim@gmail.com>
Date: Jul 7, 2006 5:44 PM
Subject: org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node
doesn't belong in this document.
To: axis-user@ws.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 = service.getServiceChargingGatewaySoap();
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 don�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
za.co.mtn.tpgw.ws.billing.billingrequest.ServiceChargingGatewaySoap {
.
.
.

    public za.co.mtn.tpgw.ws.billing.billingrequest.BillingResponseeventCharge(
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.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.setOperation(_operations[0]);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("
http://server.co.za/tpgw/ws/billing/billingrequest/eventCharge");
        _call.setEncodingStyle(null);
        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR ,
Boolean.FALSE);
        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);
        _call.setSOAPVersion(
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
        _call.setOperationName(new javax.xml.namespace.QName("
http://server.co.za/tpgw/ws/billing/billingrequest", "eventCharge"));

        setRequestHeaders(_call);
        setAttachments(_call);
 try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[]
{msisdn, contentID, partnerID, ratingID, externalTransactionID, description,
contentType});

        if (_resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)_resp;
        }
        else {
            extractAttachments(_call);
            try {
                return (
za.co.server.tpgw.ws.billing.billingrequest.BillingResponse ) _resp;
            } catch (java.lang.Exception _exception) {
                return (
za.co.server.tpgw.ws.billing.billingrequest.BillingResponse)
org.apache.axis.utils.JavaUtils.convert(_resp,
za.co.server.tpgw.ws.billing.billingrequest.BillingResponse.class);
            }
        }
  } catch (org.apache.axis.AxisFault axisFaultException) {
  throw axisFaultException;
}
    }

}


#RemoteException#; nested exception is:
        org.apache.crimson.tree.DomEx : WRONG_DOCUMENT_ERR: That node
doesn't belong in this document.
27837122534
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
 faultSubcode:
 faultString: org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node
doesn't belong in this document.
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:org.apache.crimson.tree.DomEx
<http://xml.apache.org/axis/%7DstackTrace:org.apache.crimson.tree.DomEx>:
WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
        at org.apache.crimson.tree.ParentNode.checkDocument(ParentNode.java:238)
        at org.apache.crimson.tree.ParentNode.appendChild(ParentNode.java
:333)
        at org.apache.axis.message.SOAPFaultBuilder.onEndChild(
SOAPFaultBuilder.java:305)
        at org.apache.axis.encoding.DeserializationContext.endElement (
DeserializationContext.java:1090)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement (Parser2.java
:1691)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java
:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java :227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(
MustUnderstandChecker.java :62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke (Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at
za.co.mtn.tpgw.ws.billing.billingrequest.ServiceChargingGatewaySoapStub.eventCharge
(ServiceChargingGatewaySoapStub.java:176)
        at com.xurpas.mtn.EventBillingRetryDriver.sendSms(
EventBillingRetryDriver.java:254)
        at com.xurpas.mtn.EventBillingRetryDriver.main(
EventBillingRetryDriver.java :386)

        {http://xml.apache.org/axis/}hostname:starfish01.onsite.hosting.co.za
<http://xml.apache.org/axis/%7Dhostname:starfish01.onsite.hosting.co.za>

org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node doesn't belong
in this document.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope (SOAPPart.java:701)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(
MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke (AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke (Call.java:1812)
        at
za.co.mtn.tpgw.ws.billing.billingrequest.ServiceChargingGatewaySoapStub.eventCharge
(ServiceChargingGatewaySoapStub.java :176)
        at com.xurpas.mtn.EventBillingRetryDriver.sendSms(
EventBillingRetryDriver.java:254)
        at com.xurpas.mtn.EventBillingRetryDriver.main(
EventBillingRetryDriver.java:386)
Caused by: org.apache.crimson.tree.DomEx: WRONG_DOCUMENT_ERR: That node
doesn't belong in this document.
        at org.apache.crimson.tree.ParentNode.checkDocument(ParentNode.java
:238)
        at org.apache.crimson.tree.ParentNode.appendChild(ParentNode.java
:333)
        at org.apache.axis.message.SOAPFaultBuilder.onEndChild(
SOAPFaultBuilder.java :305)
        at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1090)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
        at org.apache.crimson.parser.Parser2.content (Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)

        at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java
:448)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContext.parse(
DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        ... 11 more
Mime
View raw message