In some SOAP provider they need CDATA inside XML request structure. Picture below show you full configuration steps when you work with this scenario. I won’t show you all steps, just highlight important notes with CDATA conversion.

1 – Download WSDL from service provider


Copy content and save as with WSDL file extension.
2 – Import WSDL into Enterprise Services Builder (ESB)


3 – Convert XML Segment to CDATA field


4 – Mapping program in Operation Mapping

5 – Testing mapping program
Test mapping convert CDATA, here we can see many escaping characters in mapping step 1

Test mapping program step 2 with XSLT conversion, here escaping output was disabled

XSLT Transform

Thanks,
Cuong Dang
Good article. I absolutely love this site. Keep writing!
LikeLike
Hi! How to make the opposite operation – transform CDATA block to XML for further mapping?
I receive XML-response via SOAP-channel, and part of it has a CDATA block (it is because of the response system prerequisites). I need to change this CDATA-part to XML, because I need to return mapped XML-structure from PO.
LikeLike
Use XSLT to transform
LikeLike
Thank you! Do you have any examples for this kind of transformation?
I’m trying to create an XSL archive but I don’t understand which option should I use to transform elements from CDATA to XML
LikeLike
Hi
You can use tool online to test XSLT transformation.
Reference this one https://www.freeformatter.com/xsl-transformer.html
LikeLike