on 01-24-2013 8:57 AM
Hi, all.
I know that there are a lot of threads about Payloads, but i'm stuck now.
Picture. ( i use File-to-Mail scenario, PI 7.0 system)
I have in Payloads Section two entries: MainDocument (application/xml) and Attachment (application/xml).
How can I send Attachment as file with filename "archive.zip"
Now i receive in mail "untitled.xml" file.
I want to have payload like "application/zip;filename="archive.zip". instead of Attachment (application/xml).
Can you help?
PS. Just what i need is described in blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...
But i don't want to deploy adapter module...
BR.
My answer.
Correct order of Adapter Modules in Receiver Channel:
1. PayloadSwapBean.
swap.keyName : payload-name
swap.keyValue: Attachment
2. MessageTransformBean
Transform.contentDisposition : attachment;filename="archive.zip"
Transform.contentType : application/zip;
3. PayloadSwapBean.
swap.keyName : payload-name
swap.keyValue : MainDocument
4. XIMailAdapterBean (by default)
And as result i have archive.zip in my mail inbox as attachment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Check this:
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As given in the link below you can use the module right?http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.