on 03-21-2017 4:47 AM
Hi all,
I have a specific requirement to edit the SOAP envelope being sent from SAP HCI ( i am using SOAP 1.x receiver adapter)
required format : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://xyz.abc.com">
where as envelope sent from HCI is: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
Please suggest any method where we can achieve the required namespaces in the envelope.
as you are adding SOAP envelope with xslt code then try to use HTTP receiver adapter instead of SOAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Somen,
Can you try having below XSLT before your call to SOAP Adapter.
XML Input:
<TestSOAPReqest>
<Record>
<Field1>F11</Field1>
<Field2>F22</Field2>
</Record>
</TestSOAPReqest>
XSLT Mapping:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ser="http://xyz.abc.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/TestSOAPReqest">
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<ser:TestSOAPReqest>
<xsl:copy-of select="*"/>
</ser:TestSOAPReqest>
</soapenv:Body>
</soapenv:Envelope>
</xsl:template>
</xsl:stylesheet>
Please give a try with the above code i have tested XSLT code but not sure about how it behaves in when you add it before SOAP call.
Please do revert back with your observation it would help find out the exact behavior.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sriprasad,
Please your help with my iflow.
The XSLT mapping run correctly, but the SOAP Receiver generates error.
Error Details java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage.XSLT Mapping<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header> <tem:CabeceraCR> <tem:Usuario>USER</tem:Usuario> <tem:Clave>PASS</tem:Clave> </tem:CabeceraCR> </soapenv:Header> <soapenv:Body> <xsl:copy-of select="."/> </soapenv:Body> </soapenv:Envelope> </xsl:template> </xsl:stylesheet>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.