In switching to axis1.4 from axis1.1 I get the following exception when
trying to process the response:
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity (stack trace shown below)
Let me first say that I can make this problem go away by calling
responseMsg.getSOAPPartAsString() just before calling
responseMsg.writeTo(res.getOutputStream()) . The problem appears to
occurr in trying to render the SOAPEnvelope. Apparently, when
getSOAPPartAsString() is called first, the SOAPPart instance's
currentForm data member get's changed to FORM_STRING, which avoids the
execution path that leads to the SAXParseException.
Anyone know anything about this problem? Note that my code does not
build the response body (I believe the axis engine is doing that) so the
error, which suggests that there could be garbage at the beginning of
the envelope bytes, is not something I seem to be able to control. Any
insight would be most appreciated. The stack trace follows. Thanks.
Caused by: org.xml.sax.SAXParseException: XML document structures
must start and end within the same entity.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Lorg.apache.xerces.xni.parser.XMLParseException;)Lorg.xml.sax.SAXParseException;(Unknown
Source)
at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Ljava.lang.String;Ljava.lang.String;Lorg.apache.xerces.xni.parser.XMLParseException;)V(Unknown
Source)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(Lorg.apache.xerces.xni.XMLLocator;Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object;S)V(Unknown
Source)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(Ljava.lang.String;Ljava.lang.String;[Ljava.lang.Object;S)V(Unknown
Source)
at
org.apache.xerces.impl.XMLScanner.reportFatalError(Ljava.lang.String;[Ljava.lang.Object;)V(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Ljava.lang.String;)V(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Ljava.lang.String;)V(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityManager.endEntity()V(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(IZ)Z(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityScanner.scanContent(Lorg.apache.xerces.xni.XMLString;)I(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent()I(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(Unknown
Source)
at
org.apache.xerces.parsers.XML11Configuration.parse(Z)Z(Unknown Source)
at
org.apache.xerces.parsers.XML11Configuration.parse(Lorg.apache.xerces.xni.parser.XMLInputSource;)V(Unknown
Source)
at
org.apache.xerces.parsers.XMLParser.parse(Lorg.apache.xerces.xni.parser.XMLInputSource;)V(Unknown
Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(Unknown
Source)
at
javax.xml.parsers.SAXParser.parse(Lorg.xml.sax.InputSource;Lorg.xml.sax.helpers.DefaultHandler;)V(Unknown
Source)
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.SimpleSessionHandler.doClient(SimpleSessionHandler.java:173)
at
org.apache.axis.handlers.SimpleSessionHandler.invoke(SimpleSessionHandler.java:157)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
--
rp johns
software factotum
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]