cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver - Writing files

Former Member
0 Kudos

Hi,

I have a scenario in which i have picked up 2 files using the file sender.

eg:

xi_input.xml -


> main payload

xi_input.pdf -


> attachment

When i use the File receiver adapter i want to write only the attachment to the targer folder.

Is this possible ?

Regards,

Vignesh

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Receiver file adapter does not process attachments and hence only the main file will get processed and hence use the payloadswapbean, swap main payload and attachment and then the attachment will get dropped to the target folder.

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bavesh.

I am also seding both the files to a SOAP rreceiver also.

In that case also I dont want the main payload to be transfered.

the fiel xi_input is only used 2 trigger the scenario.

In the case of SOAP receiver we dont have to do any swapping right ?

I really dont care if the main payload reached the destination.

Will the SOAP receiver adapter take the attacment and dump the main payload

Regards,

Vignesh

bhavesh_kantilal
Active Contributor
0 Kudos

SOAP Receiver - If you select Keep Attachment's will process both the files.

Add the payload swap bean to the receiver file adapter so that the Receiver File adapter will be the only one to swap the payload's while SOAP adapter will not.

Regards

Bhavesh

Former Member
0 Kudos

Can the mainpayload be ignored in the SOAP receiver?

Would i need to create module to do that ?

I dont want to transfer the main payload because it is just a trigger file

prateek
Active Contributor
0 Kudos

Would i need to create module to do that ?

You don't have to create it. Just use the already existing one and add it in module tab of your communication channel. Then your attachment will become your main payload and will pass through.

Regards,

Prateek

Former Member
0 Kudos

but can a pdf file be passed as a mail payload using the SOAP adapter?

prateek
Active Contributor
0 Kudos

Actually configurations at XI should be dependent upon the webservice at receiver. If it accepts the attachment format, then use it as attachment. First try and understand what the webservice expects and then go for XI configurations.

Regards,

Prateek

Answers (0)