Skip to Content
avatar image
Former Member

SOAP to FTP with attachment

Hello everybody!

We have a following scenario: SOAP payload with attachment -> PI -> FTP payload with attachment. The requirement is to send the payload as XML file and application attachments, which can differ in the number and format, to FTP server.

AFAIK SOAP Axis receiver Adapter with an option "keep attachments" can be used. Is it possible to accomlish the task using the File FTP Adapter as a receiver?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 12, 2016 at 04:47 AM

    Here is what I would do,

    • Define a Generic MessageType / Service Interface for Attachments. Something like,


    <AttachmentContent> 0..N

    • Operation Mapping will be a 1:N Operation Mapping ( Multi Mapping ) with 2 Target Message Service Interfaces. One for the Main Payload and other for attachments.
    • Message Mapping will also be a 1:N MessageMapping ( Multi Mapping ). Within this message mapping, you can access the attachment content using the standard API's SAP provides and push them into the <AttachmentContent> Tag.

    In your Integration Directory, you may use the same or different File channels with the filename logic being set constant or dynamically as required.



    Add comment
    10|10000 characters needed characters exceeded

    • In the example you have provided,

      RecordsetStructure: Attachment

      Attachment.fieldSeparator : ,

      Attachment.endSeparator: 'nl'

      As there is only one field, the fieldseparator will not have any effect on the runtime

      I am not sure if having endSeparator as nl will have a effect when you try to open the file or not. You can also leave this as blank.



  • Apr 07, 2016 at 03:46 PM

    Hi Daiga,

    File adapter does not support attachments, you can use SFTP adapter if your receiver support this because SFTP adapter supports attachment processing.



    Add comment
    10|10000 characters needed characters exceeded