Hello,
We are trying to use the Custom Adapter Module as per the blog by Eng Swee Yeoh wherein we are trying to decode a field level Base64 encoded file.
Scenario - Encoded XML File - to - Decoded XML File
PO Version - 7.5
Issue - Consider there are 4 fields in an XML file wherein the 3rd field is coming BASE64 encoded. Now in the output I need an XML format wherein I am trying to capture all the 4 fields and the 3rd field should be decoded.
I am using the below configuration in the Module Parameter of Sender Channel:
Now when I am doing an end to end test. The file is getting picked up and but I am getting an error during processing:
And strange part is when I check the payload, only the XPATH mentioned field is getting generated with the decoded value and the REST OF THE FILEDS ARE NOT GETTING POPULATED AT ALL. Also I am not getting the output in the XML format in the message monitoring view. Is it something I am missing in here where in anyone could help us out?
Referred Links :
FormatConversionBean - One Bean to rule them all!
Base64DecodeConverter - Base64 decoding made easy!
The Mystery of 'Content is not allowed in prolog'
SAX Error – Content is not allowed in prolog
Regards
Nitin