cancel
Showing results for 
Search instead for 
Did you mean: 

FTP to SOAP with Attachment

Former Member
0 Kudos

Hi Guys,

I am wondering if anybody can please help me.

Basically, I have a requirement in which I have to do the following.

1. Read the zip file from the FTP Server

2. Zip will contain 3 files i.e. xml, jpg, jpg

3. do the mapping for xml

4. Send the xml along with the JPG's as an attachment to the SOAP Receiver Adapter

I was looking into various different threads and blogs but didn't find any help to achieve this requirement.

Can somebody please tell me how to complete this.

Regards,

Asif

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Asif,

What is your PI version?,

You can try with PayloadZipBean module, but i'm not sure how to work with the different files. I think, if anybody give you a better idea, you can do the unzip, do the mapping and set the attachment via java mapping. This thread could be a good point to start: SAP PI 7.3 - Unzip files using PayloadZipBean | SCN

Regards

Bhargavakrishna
Active Contributor
0 Kudos

Hi Asif,


1. Read the zip file from the FTP Server

You can use payload zip bean to zip or unzip the files, please go through below links fo rmore details.

Adding PayloadZipBean in the Module Processor - SAP NetWeaver Process Integration - SAP Library

step by step guide

Then create one more interface to read the unzipped xml files.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04c...


Send the xml along with the JPG's as an attachment to the SOAP Receiver Adapter

Regards

Bhargava Krishna