hi ALL! Help! I'm using soap-2_2 with tomcat4.0.2 and jdk1.3.1 on Unix. I have client code that invokes a call to a deployed SOAP service, however the call never gets that far. I'm getting a "SAXException: XML document structures must start and end within the same entity."
Following is the XML for the request/response. Can anyone see why the parser is complaining? REALLY APPRECIATE YOUR HELP!!!!!! Eva ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------- My SOAP Request: POST /soap/servlet/rpcrouter HTTP/1.0 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: 867 SOAPAction: "" <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <ns1:addMetaInfo xmlns:ns1="urn:Preflight" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <md5sum xsi:type="xsd:string">c831c647a118895fd257f1d889c9bda1</md5sum> <filetype xsi:type="xsd:string">TIFFGRAY</filetype> <creator xsi:type="xsd:string">creator</creator> <resolution xsi:type="xsd:int">300</resolution> <colorspace xsi:type="xsd:string">GrayScale</colorspace> <pmscolors xsi:type="xsd:string">pmscolors</pmscolors> <width xsi:type="xsd:int">400</width> <height xsi:type="xsd:int">500</height> <fonts xsi:type="xsd:string">RVOQTP+Helvetica</fonts> </ns1:addMetaInfo> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------- SOAP response: HTTP/1.1 500 Internal Server Error Content-Type: text/xml; charset=utf-8 Content-Length: 531 Date: Tue, 05 Mar 2002 15:46:52 GMT Server: Apache Tomcat/4.0.2 (HTTP/1.1 Connector) Set-Cookie: JSESSIONID=823604392081BD98174487988C8B19D1;Path=/soap <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="h ttp://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>parsing error: org.xml.sax.SAXException: XML document structures must start and end within the same entity.</faultstring> <faultactor>/soap/servlet/rpcrouter</faultactor> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------- Error message: [Fatal Error] :-1:-1: XML document structures must start and end within the same entity. Caught SOAPException (SOAP-ENV:Client): Parsing error, response was: XML document structures must start and end within the same entity. org.xml.sax.SAXException: XML document structures must start and end within the same entity. at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:218) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:22 4) at org.apache.soap.rpc.Call.invoke(Call.java:216) at preflight.MetaInfo.addMetaInfo(MetaInfo.java:77) at preflight.TestMetaInfo.addRecord(TestMetaInfo.java:59) at preflight.TestMetaInfo.main(TestMetaInfo.java:38)