You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by me...@eircom.net on 2004/01/16 14:28:50 UTC

Creating SOAPEnvelope

Hi,

Just wondering if anyone can help me, I am fairly new to Axis. I am trying to create a SOAPEnvelope using an external xml file but every time I try to invoke a call on the service i created it throws a SAXException(see below for stack trace), saying that I am using a 'Bad Envelope tag'.

C:\Apache Group\Tomcat 4.1\webapps\axis\WEB-INF\classes>java client.SubmitPOService
hello
org.xml.sax.SAXException: Bad envelope tag:  PurchaseOrder
        at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:109)
        at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
        at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
        at weblogic.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
        at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:727)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.ja
va:759)
        at weblogic.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerIm
pl.java:957)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFrag
mentScannerImpl.java:1544)
        at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:3
29)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
        at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
        at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
        at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
        at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
        at org.apache.axis.message.SOAPEnvelope.<init>(SOAPEnvelope.java:172)
        at client.SubmitPOService.execute(SubmitPOService.java:42)
        at client.SubmitPOService.main(SubmitPOService.java:54)

Any ideas? If you need any more info let me know.
Thanks,
Mark