Ok. That ' s right. But it was only my mistake with copy and paste this code in the E-Mail. The right Syntax doesn't solve the problem. I have watched the traffic with the SOAP Monitor Here is he result: <?xml version='1.0' encoding='utf-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/ <blocked::http://schemas.xmlsoap.org/soap/envelope/> " xmlns:xsd="http://www.w3.org/2001/XMLSchema <blocked::http://www.w3.org/2001/XMLSchema> " xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/ <blocked::http://schemas.xmlsoap.org/soap/encoding/> " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <blocked::http://www.w3.org/2001/XMLSchema-instance> " SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/ <blocked::http://schemas.xmlsoap.org/soap/encoding/> "> <SOAP-ENV:Body> <ns7692:soapReader xmlns:ns7692="http://ws.apache.org/axis2 <blocked::http://ws.apache.org/axis2> "> <root> <hotel> <name>Axis Hotel</name> <manager>Duke Apache</manager> <address> <street>Spring Street</street> <no>42</no> <zip>88888</zip> <city>Java</city> <country>mland</country> </address> </hotel> </root> </ns7692:soapReader> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ------------------------ And now here is the response of this request.: <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ <blocked::http://schemas.xmlsoap.org/soap/envelope/> "> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1] </faultstring> <detail> <Exception> org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
 at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes sageReceiver.java:154)
 at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic( AbstractInOutMessageReceiver.java:40)
 at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageRe ceiver.java:96)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
 at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT TPTransportUtils.java:275)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
 ; at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128 )
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 )
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)& #xd; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)&# xd; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:584)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
 Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 )
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)& #xd; at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMes sageReceiver.java:98)
 ... 19 more
 Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
 at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:239)& #xd; at org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocument Impl.java:130)
 at org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuil der.java:359)
 at CustomerService.soapReader(CustomerService.java:116)
 ... 25 more
 Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'c' (code 99) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
 at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)&#x d; at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047 )
 at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
 at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)& #xd; ... 28 more
 </Exception> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> ---------------------------------------------- I don't use WSDL or an XSD data. Please, help me ...
The given XML is not well formed. There is no <country> start element. Upul On Sun, Apr 20, 2008 at 7:36 PM, <[EMAIL PROTECTED] <blocked::mailto:[EMAIL PROTECTED]> > wrote: 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
