Just to clarify, I am still getting the same error. Changing the namespace as below made no visible impact.
-----Original Message----- From: Scudder, Jeffrey W Sent: Thursday, June 01, 2006 3:55 PM To: '[email protected]'; 'Martin Gainty' Subject: RE: Axis 2 example web service fails Here is the WSDL for my service. After looking at it I tried changing the url in the namespace from http://jeff.scudder to http://jeff.scudder/xsd <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://ws.apache.org/axis2" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://jeff.scudder/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ws.apache.org/axis2"><wsdl:types><xs:schema xmlns:ns="http://jeff.scudder/xsd" targetNamespace="http://jeff.scudder/xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xs:element name="ping"> <xs:complexType> <xs:sequence> <xs:element type="xs:anyType" name="element"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="echo"> <xs:complexType> <xs:sequence> <xs:element type="xs:anyType" name="element"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="echoResponse"> <xs:complexType> <xs:sequence> <xs:element type="xs:anyType" name="return"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema></wsdl:types><wsdl:message name="echoMessage"><wsdl:part element="ns0:echo" name="part1"/></wsdl:message><wsdl:message name="echoResponse"><wsdl:part element="ns0:echoResponse" name="part1"/></wsdl:message><wsdl:message name="pingMessage"><wsdl:part element="ns0:ping" name="part1"/></wsdl:message><wsdl:portType name="JeffServicePortType"><wsdl:operation name="echo"><wsdl:input message="axis2:echoMessage"/><wsdl:output message="axis2:echoResponse"/></wsdl:operation><wsdl:operation name="ping"><wsdl:input message="axis2:pingMessage"/></wsdl:operation></wsdl:portType><wsdl:bind ing type="axis2:JeffServicePortType" name="JeffServiceSOAP11Binding"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="echo"><soap:operation style="document" soapAction="urn:echo"/><wsdl:input><soap:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:input><wsdl:output><soap:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ping"><soap:operation style="document" soapAction="urn:ping"/><wsdl:input><soap:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:input></wsdl:operation></wsdl:binding><wsdl:bindin g type="axis2:JeffServicePortType" name="JeffServiceSOAP12Binding"><soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="echo"><soap12:operation style="document" soapAction="urn:echo"/><wsdl:input><soap12:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:input><wsdl:output><soap12:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="ping"><soap12:operation style="document" soapAction="urn:ping"/><wsdl:input><soap12:body namespace="http://ws.apache.org/axis2" use="literal"/></wsdl:input></wsdl:operation></wsdl:binding><wsdl:bindin g type="axis2:JeffServicePortType" name="JeffServiceHttpBinding"><http:binding verb="POST"/><wsdl:operation name="echo"><http:operation location="echo"/><wsdl:input><mime:content type="text/xml"/></wsdl:input><wsdl:output><mime:content type="text/xml"/></wsdl:output></wsdl:operation><wsdl:operation name="ping"><http:operation location="ping"/><wsdl:input><mime:content type="text/xml"/></wsdl:input></wsdl:operation></wsdl:binding><wsdl:serv ice name="JeffService"><wsdl:port binding="axis2:JeffServiceSOAP11Binding" name="JeffServiceSOAP11port0"><soap:address location="http://localhost:8080/axis2/services/JeffService"/></wsdl:port ><wsdl:port binding="axis2:JeffServiceSOAP12Binding" name="JeffServiceSOAP12port0"><soap12:address location="http://localhost:8080/axis2/services/JeffService"/></wsdl:port ><wsdl:port binding="axis2:JeffServiceHttpBinding" name="JeffServiceHttpport0"><http:address location="http://localhost:8080/axis2/rest/JeffService"/></wsdl:port></w sdl:service></wsdl:definitions> Thank you, Jeff -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 2:23 PM To: [email protected] Subject: Re: Axis 2 example web service fails Jeff- Lets take a look at your WSDL Martin -- ********************************************************************* This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Scudder, Jeffrey W" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, June 01, 2006 5:07 PM Subject: RE: Axis 2 example web service fails 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: [email protected] 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]> <[email protected]> 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]
