on 10-05-2015 2:02 PM
HI,
I am trying to write the code for valuemapping in xslt code by using below link.
my actual requirement is need to fetch source system name by using xslt code and need to validate by value mapping and pass to target.
below is the code i written but unfortunatly its not working and error is header_valuemapping.xsl: line 17: Variable or parameter 'SenderService' is undefined.
can any one please help me , where i am wrong?
<wsse:Username>
<xsl:param name="SenderService"/>
<xsl:variable name="SS">
<xsl:value-of select="$SenderService"/>
</xsl:variable>
<xsl:value-of select="vm:executeMapping( 'USER', 'USER1', $SenderService, 'TARUSER', 'TARUSER1')"/>
</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
<xsl:value-of select="vm:executeMapping( 'PWD', 'PWD1', $SenderService, 'TARPWD', 'TARPWD1')"/>
</wsse:Password>
Hi Maheswarareddy,
Have you defined xmlns:wm="com.sap.aii.mapping.value.api.XIVMService"?
Try to set <xsl:param name="SenderService"/> before your <xsl:template match="/">
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mahesh,
I guess in the value of select statment you should give the parameter name as "SS".
<xsl:value-of select="vm:executeMapping( 'USER', 'USER1', "$SS", 'TARUSER', 'TARUSER1')"/>
Try this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks, i have corrected that time itself and not working.
anyway i am able to get sender system name , incase i keep only below code
<xsl:param name="SenderService"/>
<xsl:variable name="SS">
<xsl:value-of select="$SenderService"/>
</xsl:variable>
<xsl:value-of select="$SS"/>
and i am expecting output of above code need to be keep in value mapping, i had tryied so many ways with changes but its not working...
please suggest..
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.