Skip to Content
0

I am Receiving Whole XML In Single Field

Dec 05, 2017 at 01:05 PM

36

avatar image
Former Member

Hi All,

I hve a scenario like this WMS->PI->SAP.

I am receiving the whole xml in single field from sender side ,so i need to map target structure(IDOC).

How can i achieve this scenario?

Thanks in advance.

Sandeep

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Ariel M. Bravo Ayala Dec 05, 2017 at 03:32 PM
0

Hi Sandeep,

Use an XSLT transformation that takes the content from the XML field and place it unescaped as a target message.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<ns0:stylesheet version="1.0" xmlns:ns0="http://www.w3.org/1999/XSL/Transform">
   <ns0:output method="xml" indent="yes"/>
   <ns0:template match="node() | @*">
      <ns0:copy>
         <ns0:value-of select="XXXXXXXXXXXXXXX" disable-output-escaping="yes"/>
      </ns0:copy>
   </ns0:template>
</ns0:stylesheet>

Replace the "XXXXXXXXXXX" with the Xpath route to your field.

Best,

Ariel Bravo Ayala

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 08, 2017 at 01:41 PM
0

Thank you for replay Ariel Bravo Ayala

Share
10 |10000 characters needed characters left characters exceeded