Skip to Content
0

How to omit CDATA tag in HTTP_AAE Sender _ SAP Process orchestration (SAP PO)

Mar 26, 2017 at 01:45 PM

132

avatar image

Hi Experts,

I have a scenario in which External partner posts Form data via HTTP_AAE (plain_HTTP) to SAP PI. (Single stack)

After receiving the data through Adapter we could see CDATA tag been prefixed.

Is it due to PI single stack option alone?

We were previously received the data in old PI system (dual stack) -- HTTP Sender as individual lines and able to construct XML out of it.

Kindly confirm how to stop CDATA tag generation at the source end ?

1. Do we need to request the partner to post the data in different format?

2. Is it something to do with Content type at Partner Application or PI level?

3. How to remove CDATA tag at Adapter level?

4. Even if i opted for JAVA mapping or XSLT mapping , source should be individual lines which would help me to construct my XML accordingly.

I have following source payload generated in different version of SAP PI 7.0 and SAP PO (7.4) single stack

Eg.,

Source payload in PI 7.0 (dual stack)

<?xml version="1.0" encoding="UTF-8"?> <ns0:MT_FILEDATAD xmlns:ns0="urn:PETRORabigh:FI:e-Citi">

<ELES>

Profile Name : PROFILE Profile
Description : E PROFILE CITI - * DO NOT MODIFY*

</ELES>

My source payload in PI 7.4 (Single stack)

<?xml version="1.0" encoding="UTF-8"?> <ns0:MT_FILEDATAD xmlns:ns0="urn:PETRORabigh:FI:e-Citi"> <ELES><![CDATA[Profile Name : PROFILE Profile Description : E PROFILE - * DO NOT MODIFY* Run ID : Run Mode : LIVE Run Date/Time : 2017-03 -08 03:06:46 File Name : asdfFile Status : Processed Start Date/Time : 2017-03-08 03:06:46 Transaction Reference Number : Preformat Code : Beneficiary or Debit Party Name : Party Payment Amount : 4595.00 Value Date : 20170308-00:00:00 Number of Files Processed : 1 Number of Transactions : 1 Number of Valid Transactions : 1 Number of Rejected Transactions : 0 Number of Invalid Transactions : 0 Total (Grand) Amount : 4595.00000]]></ELES> </ns0:MT_FILEDATAD>

Best Regards,
Suresh S

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

1 Answer

Harish Mistri Mar 26, 2017 at 10:32 PM
1

Hi Suresh,

Some web services send the data in Cdata node (CDATA stands for Character Data and it means that the data in between these strings includes data that could be interpreted as XML markup, but should not be).

1. Do we need to request the partner to post the data in different format?

-->> you can try that but handling Cdata would not be very difficult.

2. Is it something to do with Content type at Partner Application or PI level?

-->> AFAIK - it's not derived from content type.

3. How to remove CDATA tag at Adapter level?

-->>it is easier to do at mapping level. Please refer the below blog

https://blogs.sap.com/2012/03/08/integrating-cdata-based-web-service-with-sap-pi-a-generic-approach/

regards,

Harish

Share
10 |10000 characters needed characters left characters exceeded