on 11-07-2007 4:12 PM
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
Standard HTTP header like content-type or content-disposition cannot be changed with ASMA. This is valid for mail and SOAP adapter.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We use Notes as Mailserver, has anybody made a similar experience?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.