[
http://issues.apache.org/jira/browse/AXIS2-753?page=comments#action_12412572 ]
Timo Ahokas commented on AXIS2-753:
-----------------------------------
The server reports this:
2006-05-19 19:30:02,973
[ERROR][http-80-Processor23][org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/voxsurf].[AxisServlet]]:
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(SOAPEnvelopeImpl.java:142)
at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(SOAPEnvelopeImpl.java:103)
at
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.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:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.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:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
But the real exception is thrown from the javax.mail.internet.ParameterList
constructor due to the incorrect Content-Type entry.
> Setting SOAP Version URI to type 1.2 creates invalid Content-Type that fails
> during parsing
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-753
> URL: http://issues.apache.org/jira/browse/AXIS2-753
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: client-api
> Versions: 1.0
> Environment: Windows XP, Tomcat 5.5, Eclipse + Sysdeo plugin
> Reporter: Timo Ahokas
> Attachments: TestCode2.zip
>
> When setting SOAP version is set to 1.2 on the client (via
> options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI)), the
> action parameter is empty and is encoded in the following way:
> Content-Type: multipart/related;
> boundary=MIMEBoundaryurn_uuid_26C55753A5E981E64A11479668765601;
> type="application/xop+xml";
> start="<0.urn:uuid:[EMAIL PROTECTED]>";
> start-info="application/soap+xml"; charset=UTF-8;action="""";
> This action part is invalid due to the multiple quotes and the server fails
> to parse it in
> javax.mail.internet.ParameterList constructor, resulting in a "SOAPEnvelope
> must contain a body element which is either first or second child element of
> the SOAPEnvelope" which masks the OMException with a
> "Invalid Content Type Field in the Mime Message" message.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]