cancel
Showing results for 
Search instead for 
Did you mean: 

soap response with cdata

paolo_romano2
Participant
0 Kudos

I got one scenario SOAP-2-SAP where I receive a req in format in PI 7.0:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >

<soapenv:Header/>

<soapenv:Body>

<Req>

<Message><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

<ADT_A05>

...data...

</ADT_A05>]]></Message>

<Creator></Creator>

</Req>

</soapenv:Body>

</soapenv:Envelope>

Which I parse correctly, then I give my answer, which should contain a CDATA too, e.g.:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Header/>

<SOAP:Body>

<Res>

<Message><!CDATA[[

...data....

]]></Message>

</Response>

</SOAP:Body>

</SOAP:Envelope>

Instead, the SOAP channel return this:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP:Header/>

<SOAP:Body>

<Response> <Message><ACK>

...data...

/ACK></Message>

</Res>

</SOAP:Body>

</SOAP:Envelope>

But btw, in monitor I can see the resp message, without soap envelope, of course:

<?xml version="1.0" ?>

<Res>

<Message>

<![CDATA[ <ACK>

...data...

</ACK>

]]>

</Message>

</Res>

Which is correct! Why the soap adapter convert the brackets into ascii code?

thx for help,

regards

Accepted Solutions (0)

Answers (2)

Answers (2)

RaghuVamseedhar
Active Contributor
0 Kudos

Hi Paolo Romano,

I understand your scenario as synchronous SOAP to SAP.

In sxi_monitor your are able to see

<![CDATA [ .... ]]>

(I think your are seeing request message). But, when you check sender SOAP channel (when getting response) you are not able to see see CDATA.

I think in response mapping you have not handled CDATA. Please check it again.

Regards,

Raghu_Vamsee

shivhare
Active Contributor
0 Kudos

Hi Paola,

please check following thread may be helpful to resolve your issue

Regards,

Amit