Krushanthan Ragunathan (KrushanthanR)
Virtusa (pvt) Ltd
Lead System Architect
Virtusa (pvt) Ltd
KrushanthanR Member since 2010 10 posts
Virtusa (pvt) Ltd
Posted: November 20, 2015
Last activity: November 23, 2015
Posted: 20 Nov 2015 13:53 EST
Last activity: 23 Nov 2015 8:29 EST

How to pass XML string as an request parameter to a SOAP service

Hi All,

We are using Connect-SOAP to communicate with an external service provider. One of the request paramter expects an xml string. I have prepared an xml string using XML Stream rule and tried to pass that string as the request. In the tracer I've noticed that "<" and ">" charectors were replaced by "&lt;" and &gt; in the request xml string. I learnt that this is an expected behaviour as per the XML 1.0 guidelines.

(Ex: &lt;safetyreport>&lt;occurcountry>US&lt;/occurcountry>&lt;reporttype>Spontaneous&lt;/reporttype>&lt;serious>true&lt;/serious>&lt;/safetyreport>)


As per the guideline we need use CDATA section to pass the xml string inside an xml node. So I tried to append the request string as follows.


When I use this I am seeing the request xml as below.


Can someone help me to pass the xml string in the correct format?


Data Integration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.