Skip to Content
avatar image
Former Member

Unable create a target file with the same name

Hi,

I have to pick an attachment from a web service and place the attachment in
a folder, with the same name (Attached File Name). I tried this using SOAP to file
scenario. Using SOAP, I'm able to get the attachment inside PI with the same
name, but not able to generate the file in the receiver end.

Please let me know if this is possible or else is there any other way to do
it.

Regards,

Deepak Ravi

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Sep 12, 2014 at 08:28 AM

    Hi Ravi,

    Could you please suggest if it is a simple passthrough interface or you have some transformation(Mapping).

    You can try this

    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/07/01/retaining-soap-adapter-attachment-names

    Thanks

    Jyothi A

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2014 at 11:01 AM

    Hi Deepak,

    Please go through this Blog,

    Retaining SOAP Adapter Attachment Names

    Hope it helps your scenario!

    Regards,

    Poorna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2014 at 09:02 AM


    Hi,

    I'm able to save the attachment in a folder with the same name. I used MultipartHeaderBean module in sender SOAP channel and DynamicConfigurationBean module in Receiver file channel.

    Thank you all for helping me.

    Regards,

    Deepak Ravi

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2014 at 08:28 AM

    Hi Deepark

    You have to use Dynamic Configuration and Adapter-Specific Messages Attributes in your receiver file adapter

    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

    Regards

    Javi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2014 at 08:30 AM

    Hi Deepak,

    Are you trying to write out 2 files with the same name in the same directory?

    Regards,

    Jannus Botha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Jannus,

      No, I'm trying to pass the attachments(like JPGs, PDFs, etc.,) with different names to a file location.

      Regards,

      Deepak R