Hello Xinjun, > By the way, just now I tested the HttpClient PostSOAP.java. This > program does not work on my machine. The error message is as follows. > > 1500795 [http-8080-Processor24] ERROR > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].[AxisServlet] > > - Servlet.service() for servlet AxisServlet threw exception > java.lang.NullPointerException > at > com.ctc.wstx.io.ReaderBootstrapper.verifyXmlEncoding(ReaderBootstrapper.java:213) > at > com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:143) > at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:503) > at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:558) > at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:578) > at > com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:284) > at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:210) > > at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
This is a server-side stack trace, and there is not a single HttpClient class in it. What makes you think that our client program PostSOAP does not work if it's the server that fails? If there's a server-side problem determining the encoding of the XML file, then you should verify the XML file you are posting. hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
