Hi

I think I may had the same error, what I did was that I built the axiom from
source so now I've got axiom-impl-1.2.9-SNAPSHOT.jar this works.

2009/5/7 Seshadri Krishnamurthy <[email protected]>

>  Hi,
>
>
>
> Please find below the required information…
>
>
>
> *Stack Trace *
>
> * *
>
> [ERROR] Error in extracting message properties
>
> org.apache.axis2.AxisFault: Error in extracting message properties
>
>         at
> org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:172)
>
>         at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
>
>         at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
>
>         at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
>
>         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(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(Unknown Source)
>
> Caused by: org.apache.rampart.RampartException: Error in extracting message
> properties
>
>         at
> org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:322)
>
>         at org.apache.rampart.RampartEngine.process(RampartEngine.java:70)
>
>         at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
>
>         ... 21 more
>
> Caused by: org.apache.ws.security.WSSecurityException: Error in converting
> SOAP Envelope to Document; nested exception is:
>
>         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.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:161)
>
>         at
> org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:158)
>
>         ... 23 more
>
> Caused by: 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:163)
>
>         at
> org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:100)
>
>         ... 24 more
>
>
>
> * *
>
> *SOAP Request*
>
> * *
>
> POST /axis2/services/sampleservice HTTP/1.1
>
> Content-Type: application/soap+xml; charset=UTF-8; action="urn:testService"
>
> User-Agent: Axis2
>
> Host: localhost:5049
>
> Transfer-Encoding: chunked
>
>
>
> 358
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
> http://www.w3.org/2003/05/soap-envelope";><soapenv:Header>
>
> <wsse:Security xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> soapenv:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="Timestamp-30633470"><wsu:Created>2009-05-07T04:58:04.972Z</wsu:Created><wsu:Expires>2009-05-07T05:03:04.972Z</wsu:Expires></wsu:Timestamp>
>
> <wsse:UsernameToken
> wsu:Id="UsernameToken-17235092"><wsse:Username>wsuser</wsse:Username><wsse:Password
> Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">wspwd</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body></soapenv:Body></soapenv:Envelope>
>
> 0
>
> * *
>
> *SOAP Response*
>
> * *
>
> HTTP/1.1 400 Bad Request
>
> Server: Apache-Coyote/1.1
>
> Content-Type: application/soap+xml; action="
> http://www.w3.org/2005/08/addressing/soap/fault";charset=UTF-8
>
> Transfer-Encoding: chunked
>
> Date: Thu, 07 May 2009 04:58:06 GMT
>
> Connection: close
>
>
>
> 27f
>
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
> http://www.w3.org/2003/05/soap-envelope";><soapenv:Body><soapenv:Fault
> xmlns:axis2ns1="http://www.w3.org/2003/05/soap-envelope";><soapenv:Code><soapenv:Value>axis2ns1:Sender</soapenv:Value><soapenv:Subcode><soapenv:Value
> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>wsse:InvalidSecurity</soapenv:Value></soapenv:Subcode></soapenv:Code><soapenv:Reason><soapenv:Text
> xml:lang="en-US">Error in extracting message
> properties</soapenv:Text></soapenv:Reason><soapenv:Detail
> /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>
> 0
>
> * *
>
> Also please find attached the services.xml file (Server end) and policy.xml
> file (Client end) for your reference.
>
>
>
> Regards
>
>
>
> Seshadri
>
> * *
>
>
>  ------------------------------
>
> *From:* Seshadri Krishnamurthy
> *Sent:* Tuesday, May 05, 2009 3:27 PM
> *To:* '[email protected]'
> *Subject:* WSSecurityException: Error in converting SOAP Envelope to
> Document
>
>
>
> Hi,
>
>
>
> I am getting the above mentioned error in spite of using the latest axiom
> jar (axiom-dom-1.2.8.jar).
>
> Request to help me in resolving this issue
>
>
>
> Regards
>
>
>
> Seshadri
>



-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Reply via email to