09-19-2017 08:16 PM
Ho wcan I pass CDATA to SOAP execute
02-13-2019 05:56 AM
Did you figure out a way?
09-15-2020 07:02 PM
Seriously, is there a solution to this issue?
In both SOAP Execute and XML Generator when I declare a CDATA section, it gets ignored and the string that is supposed to be in the CDATA section gets escaped.
The system to which I am sending data is not decoding the data and accepting "Franks&Beans"
literally instead of “Franks&Beans
”.
2 weeks ago
Still looking for an answer here, although I found a workaround.
In my generator, I want to pass my input document wrapped in a CDATA tag because my InputDocument is an externally-provided XML containing its own XML declaration and I want to preserve it as-is.
Example "InputObject":
<?xml version="1.0" encoding="UTF-8"?><root>MyInputObject</root>
Input (from my XML Generator):
<InputDocument><![CDATA[$InputObject]]></InputDocument>
Output:
<InputDocument><?xml version="1.0" encoding="UTF-8"?><root>MyInputObject</root></InputDocument>
The only workaround I've found is to put the following in my XML Generator, then use .replace() in a Mapper:
Input:
<InputDocument>_INPUTDOCUMENTPLACEHOLDER_</InputDocument>
Replace:
$xml.replace("_INPUTDOCUMENTPLACEHOLDER_","<![CDATA["+$original.InputObject+"]]>")
Output:
<InputDocument><![CDATA[<?xml version="1.0" encoding="UTF-8"?><root>MyInputObject</root>]]></InputDocument>