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.


No comments:

Post a Comment

Featured Post

11g to 12c OSB projects migration points

1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper:   File⇾Import⇾Service Bus Resources⇾ Se...