Thursday, July 14, 2022

Encode Base64 function strips off XML Tags in the payload | Oracle Integration cloud

Today I was working to write XML file where the FTP adapter was assigned an opaque schema. Due to the opaque schema, I used encodebase64() to write the XML contents to the FTP directory but I observed that the xml tags were strippped off in the payload.

This is a known issue. We have to do the following steps to perserve the XML tags:

  1. Use ora:getContentAsString() xpath function to assign the XML contents as string to a local variable.
  2. Use the encodebase64() to encode the variable response and map to opaqueElement.

Screenshots:




No comments:

Post a Comment

Featured Post

OIC - how can I use XSLT functions to remove leading zeros from numeric and alphanumeric fields?

To remove leading zeros from an numeric field in Oracle Integration Cloud (OIC) using XSLT, you can Use number() Function The number() funct...