Hello Everybody,
I am using Axis 2 on a Windows XP System with the latest release.
I want to integrate a webservice with AXIOM.
Please, take a look at these short Java Code:
public String soapReader(String data) throws Exception {
InputStream in = getClass().getResourceAsStream(data);
XMLStreamReader reader =
XMLInputFactory.newInstance().createXMLStreamReader(in);
StAXOMBuilder builder = new StAXOMBuilder(reader);
OMElement element = builder.getDocumentElement();
............................................................................
.............................................
I want to read a XML message and get this error:
Constructor error: soapenv:Server:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code
99) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]
At least I ' ll send you the short xml message which I want to read with
posted java code.
<hotel><name>Axis Hotel</name><manager>Duke
Apache</manager><address><street>Spring
Street</street><no>42</no><zip>88888</zip><city>Java</city>mland</country></
address></hotel>
So, maybe you can tell me the reason of this error message. I hope you can
help.
Thanks , best regards
Jörn