How to manipulate the mustUnderstand attribute in a SOAP header.

How to manipulate the mustUnderstand attribute in a SOAP header.

book

Article ID: KB0093847

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
Some vendors do not support  WSS and want the ability to strip out the mustUnderstand attribute in a Soap Header. A sample vendor request is shown below.

=============

Our process does not support WSS.  Removing the mustUnderstandattribute does not work. You will need to omit the entire WSS header section.

<soap-env:Envelope xmlns:soap-env="http://www.w3.org/2003/05/soap-envelope">
<soap-env:Header>
   <wsse:Security soap-env:mustUnderstand="true"
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
      <wsse:UsernameToken
         xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">jcpenney</wsse:Username>
         <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">6XHz+Q*dJ$</wsse:Password>
         <wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2015-10-29T14:31:33.184Z</wsu:Created>
         <wsse:Nonce xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">5wF+bfJHxOgQCJLOp/awXg==</wsse:Nonce>
</wsse:UsernameToken>
   </wsse:Security>

 

Resolution

Use a proxy implementation that will remove the mustUnderstand attribute in the Soap header. A sample project is attached to this article (Filename: mustunderstand_rem_proxy.zip).

Issue/Introduction

How to manipulate the mustUnderstand attribute in a SOAP header.

Attachments

How to manipulate the mustUnderstand attribute in a SOAP header. get_app