on 04-15-2016 6:21 AM
Hi All,
I am SAP XI/PI Developer.I have a requirement ie rfc to soap scenario.It is synchronous interface.Quality of Service is Best Effort.
But, In my Requirement i need to tag two http header name and header value to soap xml payload, because receiver system validate the user name and password with http header name and value.then accept the request.Two HTTP header name and values are One time Client Id and Secret to be generated using API Portal hosted.
Here my question is where should i need maintain the http header name and header value in PI level?
Thanks & Regards
Devi Prasad.
Hi,
But, In my Requirement i need to tag two http header name and header value to soap xml payload, because receiver system validate the user name and password with http header name and value.then accept the request.Two HTTP header name and values are One time Client Id and Secret to be generated using API Portal hosted.
When you say HTTP Header, it is not part of the SOAP envelope. If you are referring to the latter, then XSLT/Java mapping will be your setup, along with checking Do Not Use SOAP Envelope . For the former though, you need to check ASMA and Variable Transport Binding in SOAP receiver CC. Afterwards, place the ClientID in XHeaderName1 and Secret in XHeaderName2 and then populate them using Dynamic Configuration.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Polani,
Check these blogs.
Or use below XSLT mapping after the mapping.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>User</wsse:Username>
<wsse:Password>Password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soap:Header>
<soap:Body>
<xsl:copy-of select="*"/>
</soap:Body>
</soap:Envelope>
</xsl:template>
</xsl:stylesheet>
Make sure you enable the Do Not Use SOAP Envelope in the soap receiver channel if you use XSLT mapping.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.