cancel
Showing results for 
Search instead for 
Did you mean: 

WSSE USERNAME TOKEN HEADER IN SOAP RECEIVER CHANNEL

Former Member
0 Kudos
Hi,We have Proxy to Soap synchronous scenario using pi 7.4(single stack), the receiver is expecting the request with wsse security inside header to be included in soap envelope as given below.This is the reference API we have received from them.How can we generate user token id and nonce dynamically.Kindly suggest me the solution to acheive this in pi.I am able to post data through soapUI but in pi we r getting http: 404 not found error in receiver channel by hard coding using java mapping, though the payload is exactly matching their request format still not able to post data into web services system.

<soapenv:Envelope xmlns:ser="http://uxxxxxxxxx.com/services/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-9613BB2C5383685">
            <wsse:Username>xxxxx</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX-XXXX-xxxx</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">4U8GoCqFg7EMBA==</wsse:Nonce>
<wsu:Created>2018-08-10T12:15:44.860Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ser:CreateOrEditCategoryRequest>
<ser:Code>APPLE</ser:Code>
<ser:Name>APPLE</ser:Name>
<ser:TaxTypeCode>Default</ser:TaxTypeCode>
<ser:GstTaxTypeCode>DEFAULT_GST</ser:GstTaxTypeCode>
<ser:HSNCode>7236</ser:HSNCode>
</ser:CreateOrEditCategoryRequest>
</soapenv:Body>


Regards,

sandhya.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Sandhya,

were you be able to get the solution for your requirement .

If yes, can you please share with us.

markangelo_dihiansan
Active Contributor
0 Kudos
Muniyappan
Active Contributor
0 Kudos

try this

https://blogs.sap.com/2013/11/22/addsoapheaderbean-module/

if it does not work then try other blogs which are mentioned in the same blog post.

Former Member
0 Kudos

Thank you for the response.The link u have provided is for to add headers as i know.I want to add wss user token name as mentioned above.Which is the best solution? java mapping or xslt mapping or axis adapter. Hope many people posted related the same requirement none of them get the proper solution.If any one had succeeded in this requirement please help.

Muniyappan
Active Contributor
0 Kudos

could you paste your complete soap envelope message here? Best would be tested one from soap ui.

Your above requirement can be handled using the same bean. just check here where the "<wsse:Security" falls. I comes under Header part of soap envelople.

https://docs.oracle.com/cd/E21455_01/common/tutorials/authn_ws_user.html