CDATA in soap request

HI All,

We have a requirement to send CDATA within a soap request something like this :

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” >
soapenv:Header/
soapenv:Body

<tns: xml>
<![CDATA
</tns: xml>

</soapenv:Body>
</soapenv:Envelope>

I have created the xml that I want to pass as CDATA in above message but not sure how to create CDATA in webMethods.

We are working on wM 9.9.

Thanks,
Amit

You can just construct a string using variable substitution or string concatenation methods in below format and pass it to soap request.

<![CDATA[  %XML_STRING_HERE%    ]]> 

Amit, do as Prasad suggested. Wrap the XML string in CDATA. Using CDATA means that the content should not be encoded or be treated as plain string. Update if you face any hurdles.

Thanks,

Thanks a lot Prasad for such a easy and quick solution.

Never thought it would be so easy to handle.

Much appreciated. :slight_smile:

Thanks,
Amit