I am working on bidirectional integration, how to use CDATA ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2015 10:19 PM
Hi All,
I am working on bi-directional integration.
And in SOAP message our Request XML looks like
<Payload>
<var1>${var1}</var1>
<var2>${var2}</var2>
<var3>${var3}</var3>
<var4>${var4}</var4>
<var5>${var5}</var5>
</Payload>
Client wants the complete payload in CDATA. So i am not sure whether i am or right path or not, for adding the complete payload in CDATA, i changed the request XML as
<Payload>
<![CDATA[ ---- added this line for starting CDATA
<var1>${var1}</var1>
<var2>${var2}</var2>
<var3>${var3}</var3>
<var4>${var4}</var4>
<var5>${var5}</var5>
]]> ----- here i am closing CDATA
</Payload>
Is the above request xml fine for sending in CDATA or i am missing something. I just want to verify this,as i havn't worked with CDATA, and dont know much on the same.
So plase help me in understanding the usage of CDATA.
TIA,
Gaurav
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2015 11:12 PM
CDATA is used to specify data that needs to be ignored by parser and needs to be treated as text or character data..