on 09-29-2015 1:02 PM
Hi SapAll.
I have a requirement where I need to pass username & pwd in the main payload for IDOC to webservice Interface. iam using graphical mapping to map the IDOC with webservice data.
in the receiver SOAP Channel I have enabled the Keep Headers option but that doesn't help me.
can any one help me in this.
Regards.
Jagdish.
I had the same "problem", and in this case had to change configuration of Module parameter in communication channel and create xsl mapping.
Here's how I set up CC...
And an example of XSL...
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns1="http://xmlns.sap.com/example" xmlns:ns0="http://xmlns.sap.com/">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
<!-- Change user of XML -->
<xsl:template match="/ns0:Header/ns0:TransmissionHeader/ns0:UserName">
<ns0:UserName>userapp</ns0:UserName>
</xsl:template>
<!-- Change password of XML -->
<xsl:template match="/ns0:Header/ns0:TransmissionHeader/ns0:Password">
<ns0:Password>password</ns0:Password>
</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.
Hello Jagadish,
You can use altova xml or even notepad to write XSLT mapping.
Save it zip and import in ESR and use it in operation mapping,after message mapping for your case.
Refer the below link
Hi Jagdish,
Refer the below links on xslt mapping.
http://www.riyaz.net/sap/beginners-guide-to-xslt-mapping-in-sap-pi/769/
Hi Jagdish,
I echo with inaki, you need to explicitly add the header information in the payload.
If you want to do it in the channel level, you can do it using the module or else you can do it using xslt mapping at the mapping level.
Refer the below links:
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 Jagish,
Since the adapter module present in the channel level, you cannot see this header in the payload level in either moni or RWB.
You need to check with the webservice team.
But if you want to see how the payload looks like after the AddSoapheader module, then you can check by using Message logger bean in the channel exactly after the AddSoapHeader module.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.