You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Ea...@EAS.San-Jose.CA.US on 2001/03/06 19:13:48 UTC

Tomcat and soap sample code

I am getting the following error when I try to run the stockquote
sample. I am running apache-soap and tomcat-4.0 on a redhat-6.2 linux
system with SUNW java-1.3.1. Does anyone have a clue what I might be
doing wrong.

Thanks

=eas=

$ java samples.stockquote.GetQuote http://plutus:8080/soap/servlet/rpcrouter SUNW
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1060)
	at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:626)
	at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:805)
	at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
	at org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:85)
	at org.apache.soap.rpc.Call.invoke(Call.java:213)
	at samples.stockquote.GetQuote.main(GetQuote.java:103)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-ID: <6182315.983901779961.apache-soap.eas.plutus.eas.san-jose.ca.us>
Content-Length: 469

<?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>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<fault
]
	at org.apache.soap.rpc.Call.invoke(Call.java:223)
	at samples.stockquote.GetQuote.main(GetQuote.java:103)