cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping

Former Member
0 Kudos

Hi All,

I have a following message in the Payload(which is then sent to a webservice using the "DONT USE SOAP ENVELOPE" option in the Communication Channel so that the payload is not wrapped with the Envelope but sent as it is...)

<n0:HR_GB_EFI_DPSrequestToken xmlns:n0="http://sap.com/xi/HR">

<Logon_Payload>

<SOAP-ENV:Envelope …>

</SOAP-ENV:Envelope>

</Logon_Payload>

</n0:HR_GB_EFI_DPSrequestToken>

Now my requirement is that , i need to unwrap the SOAP message from this payload i.e, only the contents within

<Logon_Payload> tag and send it to the Web Service ..i.e, a message like the following (the data present inbetween the <logon_payload> element) should go to the webservice..

<SOAP-ENV:Envelope>

...

</SOAP-ENV:Envelope>

So i have 2 questions here...

1. Is this possible through XSLT mapping

2. Is it possible to clear the Tokens and namespaces present in the above payload in XSLT mappin and then send only the required data ???

Can anyone help me out in this .....

Best Regards,

Chandan

Accepted Solutions (0)

Answers (2)

Answers (2)

agasthuri_doss
Active Contributor
0 Kudos

Hi Chandan,

Yes, With XSLT mapping that is possible, See that you are incoming data to the Mapping is not huge if so It will occupy more memory .

Regards

Agasthuri Doss

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Can you try this,

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
<xsl:output method="text/xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="HR_GB_EFI_DPSrequestToken:Logon_Payload">
<xsl:copy-of select="child::node()"/>
</xsl:template>
</xsl:stylesheet>

Regards,

Bhavesh

former_member206604
Active Contributor
0 Kudos

Hi,

First try the one what Bhavesh has given with a small change in it like <b>n0:HR_GB_EFI_DPSrequestToken/Logon_Payload</b> and you need to add this

<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <b>xmlns:n0="http://sap.com/xi/HR"</b>>

Thanks,

Prakash