Can you post the WSDL? Did you try and see if the namespace that you are using matches the one in the WSDL?
- Junaid "Scudder, Jeffrey W" <Jeffrey.W.Scudde To [EMAIL PROTECTED]> <axis-user@ws.apache.org> cc 06/01/2006 05:07 PM Subject RE: Axis 2 example web service fails Please respond to [EMAIL PROTECTED] he.org Since the test service I wrote was in the following package: package scudder.jeff I modified the message sent from the client to add a namespace. It is now: <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header /> <soapenv:Body><jst:echo xmlns:jst="http://jeff.scudder">Hello Axis2</jst:echo> </soapenv:Body> </soapenv:Envelope> But I still get exactly the same error from the client and the same error in the tomcat logs. The first line of tomcat's exception stack says: "SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope." Which makes me think that the problem occurs before the contents of the soap body are ever examined. Thank you, Jeff Scudder -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 11:09 AM To: axis-user@ws.apache.org Subject: Re: Axis 2 example web service fails The first child element of SOAP Body (<echo>) is not namespace qualified. - Junaid "Scudder, Jeffrey W" <Jeffrey.W.Scudde To [EMAIL PROTECTED]> <axis-user@ws.apache.org> cc 06/01/2006 01:58 PM Subject Axis 2 example web service fails Please respond to [EMAIL PROTECTED] he.org Hello all, I sent out an email a week ago and am resubmitting my question. I am getting an exception in Tomcat when running Axis2 1.0 with the example service from the user's guide. I had previously followed the example for Axis 0.95 and everything worked perfectly. With 1.0 I had to change the libraries used in my code and I eventually started from a clean slate trying to track down the cause of this problem. I wrote a web service in java, packaged into an .aar and dropped it into Axis2. I have also written a simple client which sends a SOAP:Envelope to invoke the echo service. When I send the following xml: <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body><echo><test>Hello Axis2</test></echo> </soapenv:Body> </soapenv:Envelope> I receive the following response from the server: Error reading response from service provider: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/JeffService A peek into the Tomcat logs reveals the following exception stack trace: - Servlet.service() for servlet AxisServlet threw exception org.apache.axiom.om.OMException: SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope. at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getBody(SOAPEnvelopeImp l.java:142) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(SOAPEnvelopeIm pl.java:103) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeI mpl.java:82) at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine. java:183) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java :168) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:599) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:195) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1 17) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1 91) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF actoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm pl.java:75) at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp .java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java :363) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java :284) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.j ava:228) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :134) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) Have I formatted my request incorrectly for the new Axis2 1.0 handlers? Any help would be greatly appreciated. Thank you, Jeff Scudder --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]