Question

Transformer level Encoding and Decoding

  • 6 May 2021
  • 1 reply
  • 187 views

Userlevel 2
Badge +4

Hello Team,

 

We have requirement to encode and decode on XML tag value from 35 Chars to 16 chars and vice versa. 

Example:

XML Tag <EndToEnd> 123456789102205202112345678910<EndToEnd>  now we have to encode this to 16 chars and then once we get the same value in another input xml file then we have to revert back with same value as 35 chars. 

 

Has anyone came across this kind of requirement?

 


This topic has been closed for comments

1 reply

Userlevel 7
Badge +20

Hi @NikitaVelapure19 ,

 

Best method is to create two java transformers for encoding and decoding and use in routing rules. Check following documentation on creating java transformers.

About Transformer Development (ifs.com)

If you need a 3rd party library for encoding and decoding, you can include that to the transformer.

 

Hope it helps.

Damith