on 04-14-2016 10:05 AM
dear Experts,
I have a requirement from soap receiver I need to pass 2 soap header values in the receiver payload or receiver channel.
do u have any code or document please share.
please suggest.
Regards,
Kiran Polani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear friends,
Thanks for your suggestion.
i tried so many ways but no use finally i tried to use XSLT Mapping got success.
Please find the code of XSLT Mapping.
To Add SOAP Envelope to request message is
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header />
<soap:Body>
<xsl:copy-of select="."/>
</soap:Body>
</soap:Envelope>
</xsl:template>
</xsl:stylesheet>
To Extract SOAP Body from response message is
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:template match="/">
<xsl:apply-templates select="soapenv:Envelope/soapenv:Body/*"/>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Regards,
Kiran Polani
can you check Praveen Gujjeti blog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.