cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pass a file to SOAP receiver as an attachment in a pass through scenario?

Former Member
0 Kudos

Hello all,

I have a SFTP->PI->SOAP async PASS-THROUGH scenario, where I need to pass a pdf file as an attachment to the SOAP server. There is no mapping involved, and no FCC or file structure. I just need to pick the pdf files from the SFTP server and pass it to the SOAP receiver as an attachment.


As of now, I have configured PayloadSwapBean in the PI SFTP sender channel so that the pdf file that is picked becomes an attachment and in the SOAP receiver, I have selected the "Keep Attachment" checkbox. In the message log, I see a message as Swapping successful, however, I don't see any attachment in the XI message.


Let me know, if my assumption of the solution would be fine, and also suggest if the requirement can be achieved in any other methods.

Accepted Solutions (0)

Answers (2)

Answers (2)

srikanthreddy_d
Explorer
0 Kudos

Hi Manoj,

In FTP server, we would have zipped files available, PO system has to pick up these files and do the Base 64 encoding and send it to thrid party. The scenario is Async to Sync, hence you need to go for a Asycn to Sync bridge and try to suppress the response sent by third party in PO system.

Could you please provided us it will help full us .

  • Custom Module.
  • Java Mapping.

regards

Srikanth

manoj_khavatkopp
Active Contributor
0 Kudos

Hello Srikanth bhai,

Hope you are doing good.

Use the code from below thread suits perfect for your requirement : https://answers.sap.com/questions/233941/issue-with-pdf-upload-to-sharepoint.html?childToView=237232...

Br,

Manoj

manoj_khavatkopp
Active Contributor
0 Kudos

Shankar,

Are you picking two files from SFTP? if No then Payloadswapbean dosen't work here.

Options:

  • Custom Module.
  • Java Mapping.

Br,

Manoj