cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments for receiver file adapter

Former Member
0 Kudos

Hello gurus,

I think receiver file adapter does not support attachments. But I do have a scenario where I receive additional files as SOAP payloads accompanying the request message and I have to write them to a network directory. How can I achieve this?

Regards,

Gökhan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

As ASMA can be set for only one file, receiver file adapter is never able to create multiple files with different names. Zipping all attachments is the only option.

former_member732072
Active Participant
0 Kudos

Hi Gokhan,

Please have a look at the following links and see if it helps

Best Regards

Former Member
0 Kudos

These links are only for sender file adapter, which does support attachments. But what about the receiver file adapter that doesn't support it?

former_member181985
Active Contributor
0 Kudos

In the Receiver File Adapter use Payload Zip Bean Module in zipAll mode.

So it will zip main payload and attachments as single zip file and will write it to File Directory.

The receiving application Should Unzip and process data accordingly.

Former Member
0 Kudos

Thanks, but that is what I am currently doing to overcome the problem. Is there any other way?

ravi_raman2
Active Contributor
0 Kudos

Plug in your own adapter Module,

Count the attachment, iterate over it and create one Huge String with each of the messages and write it...

Regards

Ravi Raman

Former Member
0 Kudos

Create one huge string per attachment and write one file or can I write multiple times and multiple files? More details please, I didn't get it.

Regards

Gökhan