on 12-29-2014 7:17 AM
Hello Experts,
I have a File to File scenario, the requirement is 'Source System' places two files in source directory where PI should pick 1 file as a main payload and the other as an attachment and place both the files(main payload/XML file & attachment/PDF file) should be placed in the target directory.
As I see we dont have a standard/direct solution in 'File Adapter' to pick and place the attached file, Kindly suggest what can to be done to receive the attachment by sender File adapter and place it in the target using File adapter.
Do we have any Adapter Modules or any other solutions where we can pick the files as attachment and also place the attached files in target directory.
Please note, we have mapping involved for the main payload whereas the attachment must be sent as is.
Thank you.
Kind Regards,
Pooja
Hi Pooja,
Could you see the attachments in the monitoring?, why do you really need have the additional files like attachments in a file to file scenario?, in a file to soap for example i think can be necessary if the WS endpoint demands the two files at the same tame, but in a file to file i don't figure out the reason, i've said this because with Advanced selection for Source File option is easier to get the files although they will be picked up one after another.
Hope this helps.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Iñaki,
Yes i could see the attachments in the monitoring using a Receiver File channel.
In our case, the files picked by PI are an XML(main payload) and a PDF file(attachment). Although the name of the attachment in the "attachments" tab is shown as ".xml" but the content of this file is that of a PDF file.
I've gone through the document referred by you and tried using a SOAP Receiver channel instead, but i get the following exception when i run the scenario.
Axis: error in invocation: java.io.IOException: failed to rename ./temp/test2753703929965672136.xml7854602955514629740.tmp to /Reuse/interfaces/pitest/output/test2753703929965672136.xml
Adapter type : SOAP
Transport Protocol : File(Axis)
Message Protocol Axis
I've rechecked and confirmed that all the permissions are set to the directory and the user.
Kindly provide your inputs.
Regards,
Pooja
Hi Pooja,
First of all, before to figure out the solution for your exception, have you checked your AXIS libraries are right installed?, try with this url http://host:port/XIAxisAdapter/MessageServlet
Regards.
Pooja,
I think Receiver File channel cannot handle attachments. i.e. only one file can be written to target. If PayloadSwapBean is used, main payload will be lost.
Try this solution: - Split the message into two messages (in Receiver Determination add additional receiver system, maybe temp business service).
First receiver file channel will write main payload.
In second receiver file channel use PayloadSwapBean, it will write attachment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pooja,
Have you tried the Additional Files utility in the Sender file adapter?
Check this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d...
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.