You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Insert CDATA into XML in a mapping

edited Nov 8, 2019 4:03PM in Integration 9 comments

Summary

Insert CDATA into XML in a mapping

Content

I have an XML request I am trying to write that requires some static CDATA, e.g.

<callContext xsi:type="wss:CAdxCallContext">
            <codeLang xsi:type="xsd:string">ENG</codeLang>
            <poolAlias xsi:type="xsd:string">PILOT</poolAlias>
            <poolId xsi:type="xsd:string"></poolId>
            <requestConfig xsi:type="xsd:string"><![CDATA[adxwss.optreturn=JSON&adxwss.pretty=true]]></requestConfig>
         </callContext>

  If I just add the CDATA as a string value for the element, it gets escaped and I get an error from OIC:

oracle.cloud.connector.api.CloudInvocationException: oracle.xml.parser.v2.XMLParseException; lineNumber: 7; columnNumber: 86; ']]&gt;' is not allowed in text.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!