cancel
Showing results for 
Search instead for 
Did you mean: 

Base 64 conversion

Former Member
0 Kudos

Hello gurus,

scenario is File to SOAP (xml to SOAP). we are using PI 7.3

We will use integrated configuaration to construct this interface( no ESR objects)

we need to convert the contents of the file to base 64 and post it to SOAP.

also need to change the file name and include this file name in within xml as first line(before the encoded payload starts file name tag should be there).

how to achive this ?? please share your inputs...

can we use JAVA mapping to achieve this or adapter module is mandatory??

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>also need to change the file name and include this file name in within xml as first line(before the encoded payload starts file name tag should be there).

You can do even java mapping to include file name in the payload xml and base 64 encoding for the payload.

You might want to check this sample link for base 64 encoding

http://www.wikihow.com/Encode-a-String-to-Base64-With-Java

Google for base 64 encoding. There are plenty of examples available online.

rajasekhar_reddy14
Active Contributor
0 Kudos

You can use Dynamic configuration UDF to get sender file from FTP and you can map it to target.

check below blog to know the process to get file name

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/06/05/how-to-handle-duplicate-files-sen...

Ryan-Crosby
Active Contributor
0 Kudos

Hi Jan,

Please check the following blog I did several years back... it isn't exactly what you need but it has all the elements that you need essentially and could be tailored to your scenario.

http://scn.sap.com/people/ryan.crosby/blog/2009/02/27/file-xi-proxy-scenario--moving-binary-files-wi...

Regards,

Ryan Crosby