cancel
Showing results for 
Search instead for 
Did you mean: 

How to work with XI message attachemnts in Adapter module?

Former Member
0 Kudos

Hi guys,

I was wondering if there is any way how to work with XI-SOAP message attachemnts in Adapter modules. Let's say I want to have a mail->file scenario, where I want to pick up an email with attachment, this is sent to XI as a XML payload (email) and it's attachment (file). In the target I want to save the attachment as a file (somewhere) and the main email body will be saved in another file.

There is of course a way to work with the main payload but I haven't seen yet any source code for processing attachments.

Thanks a lot for your help,

Olian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Olian,

PI offers APIs to handle attachments in messages :

http://help.sap.com/javadocs/pi/SP3/xpi/index.html

If your scenario requires custom development to fulfill your needs, you can use those APIs in your custom adapter modules ... PI/XI also offers the PayloadSwapBean module to replace payload with one of the attachments

Hope this helps

Chris

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Olian,

According to me I think there is no standard way to do this kind of things, so you have to write the Java modules for this.

Regards

Ramesh