cancel
Showing results for 
Search instead for 
Did you mean: 

MailReceiverAdapter problem using XHeaderName1

ingo_hauchwitz
Explorer
0 Kudos

Hi all,

i got stuck in a problem with dynamic Headers in the MailReceiveradapter.

I try to name a file which is sent as an attachment dynamically, staticly this works fine using the MessagetransformationBean.

I try to use the Field "XHeaderName1" to move the Filename as Paramter to the Adapter. In the DynamicConfiguration i have created the Parameter "XHeaderName1" in the Namespace "http://sap.com/xi/XI/System/Mail", and assigned the desired Value to it. After sending a Message i have an entry in the DC that looks like this:

<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Application/EDIFACT; filename="dynamic_filname.edi"</SAP:Record>

So far so good.

In the Configuration of the MailReceiverAdapter i select "Use Adapter-Specific Message Attributes" and "Variable Transport Binding" as mentioned here:

http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm

I filled the Field "Variable Header (XHeaderName1)" with the Value "Content-Type" and activated all changes.

But when i send the Message the Header just has an "Content-Type: application/xml".

What im i doing wrong? Isn't is possible to name an Attachment dynamically? It's not possible to use the Mail-Package because the Payload isn't an XML-File. We use a module in the adapter to convert from XML to Edifact, so the complete Payload is converted to Edifact, which works fine.

Any hints are very welcome.

Best regards

Ingo

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Standard HTTP header like content-type or content-disposition cannot be changed with ASMA. This is valid for mail and SOAP adapter.

Regards

Stefan

ingo_hauchwitz
Explorer
0 Kudos

Hi Stefan,

thanks for the reply. I think i have to find another way to fix this problem

Regards,

Ingo

ingo_hauchwitz
Explorer
0 Kudos

We use Notes as Mailserver, has anybody made a similar experience?