• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Did not get mustUnderstand - Error in SOAP Header

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.



regards
praveen
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
praveennagle kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, thanks to reply.

below code is my SOAP HEader Part.

<soapenv:Header>
<wsu:Timestamp xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"><wsu:Created>2005-03-10T05:46:46.401Z</wsu:Created>
</wsu:Timestamp>
<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:SignedInfo>
<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:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds igestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds igestValue>kTdgU10r0SHIAS1ZUZJYkTOWWaI=</ds igestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
mCPP+j8UiTxUuQIS8CtS5TLhDwAd7y8V4WwiBx4ZrEd2J81rtPttfo5mxNlBjUqbp0pKRAVT54so
qreb98Fd4gFfGppU8XvmB8fPuuS2AL+H4LOPlj4JvmkckZQVxlXFsrDfjRDVG2lmYXUOsIVifiNb
ixkyPNELx+GqESsxI5A=
</ds:SignatureValue>
<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>
</ds:KeyInfo>

</ds:Signature>

</wsse:Security> header part



-------------
But eventhou I am getting this error.

<faultstring>
Did not understand "MustUnderstand" header(s):
</faultstring>


regards
praveen
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic