wood burning stoves*
The moose likes Web Services and the fly likes Did not get mustUnderstand - Error in SOAP Header Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Did not get mustUnderstand - Error in SOAP Header" Watch "Did not get mustUnderstand - Error in SOAP Header" New topic

Did not get mustUnderstand - Error in SOAP Header

praveennagle kumar

Joined: Mar 09, 2006
Posts: 2
hello guys,

I am getting the error: Did not understand "MustUnderstand".
In the SOAP header

am using axis with tomcat
and using wsdd file to deploy.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41599
Welcome to JavaRanch.

A "mustUnderstand" attribute -if set to true- says that the SOAP header it's part of must be understood by the actor handler which tries to handle it. If it's named "MustUnderstand" then it wouldn't be understood (because case matters in XML).

Ping & DNS - my free Android networking tools app
praveennagle kumar

Joined: Mar 09, 2006
Posts: 2
Hello, thanks to reply.

below code is my SOAP HEader Part.

<wsu:Timestamp xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2005-03-10T05:46:46.401Z</wsu:Created>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">

<ds:Signature xmlns s="http://www.w3.org/2000/09/xmldsig#">
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-14672643">
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds igestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds igestValue>kTdgU10r0SHIAS1ZUZJYkTOWWaI=</ds igestValue>
<ds:KeyInfo Id="KeyId-3431235">
<wsse:SecurityTokenReference wsu:Id="STRId-2883071" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><wsse:Reference URI="#CertId-9623562" ValueType="wsse:X509v3"/></wsse:SecurityTokenReference>


</wsse:Security> header part

But eventhou I am getting this error.

Did not understand "MustUnderstand" header(s):

Dieskun Koper
Ranch Hand

Joined: Aug 15, 2004
Posts: 85
The Axis stub did not understand that header, so it generated a fault.

Use a client handler to process (and then remove) the header. The handler will do its work before the message gets deserialized, so that will solve the problem.
I agree. Here's the link: http://aspose.com/file-tools
subject: Did not get mustUnderstand - Error in SOAP Header