Skip to Content
avatar image
Former Member

Sender mail adapter sending xml attachment comes with .bin

Hi all,

I have the following scenario: Sender Mail >> RFC

As I can receive multiples attachments I´m using payload swap bean and adapter module to get all attachments together in the first attachment.

In most cases is working very well, but in some cases the xml attachment is coming as a ".bin".

The same mail with this wrong format, when it´s been forwarded, comes with the right xml file so I can figure that is the mail format sent by vendor.

I tried to simulate this error myself and I could observe that when I change the message format from html to plain text in my outlook I get the same error, the attachments comes as .bin

Does anyone know how can I receive those mails in the right format?

Thanks for your help!

Vanessa

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 25, 2009 at 02:44 PM

    Hi Vanessa,

    What value did you specify for swap.keyValue attachment;filename?

    Try specify some file name with an xml extension explicitly.

    eg:

    localejbs/AF_Modules/PayloadSwapBean TRANSFORM
    
    TRANSFORM swap.keyValue= "Attachment1.xml"

    Regards,

    ravi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 25, 2009 at 04:09 PM

    Hi Ravi, thanks for your help.

    I have configured:

    TRANSFORM > swap.keyName > Content-Disposition

    TRANSFORM > swap.keyName > Content-Description

    TRANSFORM > swap.keyName > attachment;filename="MailAttachment-1.xml"

    TRANSFORM > swap.keyName > MailAttachment-1

    When the mail comes as html format is working fine, but not working when comes as plain text.

    Any Idea?

    Regards

    Vanessa

    Edited by: Vanessa Balsanelli Zocaratto on Nov 25, 2009 5:10 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vanessa,

      If your MIME type comes as "application/octet-stream" or similar content-type, try changing your attachment to "text/xml" or "application/xml" content-type.

      The attachment would come as bin extension as it is an extension associated to "application/octet-stream" MIME type.

      Regards,

      Rogério