on 08-17-2018 10:21 AM
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.
Hi Sandhya,
were you be able to get the solution for your requirement .
If yes, can you please share with us.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandhya,
Can you try if this works for you
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
80 | |
10 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.