on 10-01-2009 5:55 AM
Dear All
I have an XML file which I need to convert to a flat file and send as a mail attachment.
The problem is that I dont want the payload of the file to be a part of the message text.
Please suggest a solution
Sourabh
In this case you can proceed like this
1. create a mail adapter
2. then at module level configure the message transform bean and do configure the content conversion paramters
fro converting to flatfile ....
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sourabh,
XSLT Mapping will be helpful in your scenario
The following blog will be helpful, instead of word/excel you need to use .txt in the mapping.
[eMail Report as Attachment|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417100%29ID0352420250DB01126908113326823341End?blog=/pub/wlg/4375]
Select message protocol as XIPAYLOAD in the receiver mail adapter
Regards,
Gautam Purohit
use receiver mail adapter and select message protocol as XIPAYLOAD.
select Use mail package option and keep attachment
refer this for how to use Use mail package option http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID0528701850DB00303731739768576528End...
as explained in this blog You need Mail.xsd as receiver message type .there is a field Content_Type inside this structure pass
Text/plain to this field.the attachment created will be Untitled.txt.
If you want to give a name to the attachment you have to Use MessageTransformationBean
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.