cancel
Showing results for 
Search instead for 
Did you mean: 

Sender mail adapter sending xml attachment comes with .bin

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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