on 10-30-2013 8:30 AM
Hi experts,
i need help regarding upload file from FTP directory. The structure of that file (file suffix *.msg) is unknown.The File have to be forward as attachment encrypted with base64 to SOAP.
I found following article in the scn which could fit to our scenario:
http://scn.sap.com/people/community.user/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
Can anybody send me an example code of implementing an adapter module for encrypting a file to base64 like the ReadFileBean in the above article.
Or is there in SAP PI 7.31 an easier way to implement this?
Thank you.
Regards
Mario
Hi Mario,
You can achieve this in PI7.31 using a java mapping. Read the incoming payload as bytes and then convert it into a base64 data and then create an attachment. You can also formulate required SOAP payload (may be some dummy data or with required data) via java mapping.
Best Regards,
Praveen Gujjeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
Is using java mapping to put the payload in base64 in mapping and then using PayloadSwapBean to swap the payload as attachment. In case of writing the payload as attachment in java mapping as well in PI 7.31 ICO please refer to the link below :
Regards
Subhro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.