Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

UsernameTokens

$
0
0

Hi Experts,

 

Need specific advice to implement wsse requirement. I am using AXIS adapter to perform various wsse actions, one of them is generating usernametokens. I am reffering to the FAQ SAP note for the AXIS adapter. The place where i am stuck is that our partner to whom we are integrating, expects the usernametokens with a wsu:id

 

<wsse:UsernameToken wsu:Id="USERNAME">

    <wsse:Username>name</wsse:Username>

    <wsse:Nonce>rO9kdBTfsSdw3b44PYLOUQ==</wsse:Nonce>

    <wsu:Created>2013-02-20T10:23:09Z</wsu:Created>

   </wsse:UsernameToken>

 

I have been able to add the usernametoken handler to add the username and also the nonce and created fields. Please fidn the below snapshot from the SOAP envelop i have generated

 

<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-1193158008">

<wsse:Username>name</wsse:Username>

<wsse:Nonce>ECDHYAHU1JtJQ19bM/c9Wg==</wsse:Nonce>

<wsu:Created>2013-06-14T10:58:38.056Z</wsu:Created>

</wsse:UsernameToken>

 

 

But cant add the wsu:id = "USERNAME" field. The AXIS adapter populates an own wsu:id but i need to hardcode it to "USERNAME"

Any one who has implemented such a requirement, please suggest. Thanks.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>