Skip to Content
0
Feb 07, 2011 at 11:58 AM

soap response with cdata

271 Views

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

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.:

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:

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