on 01-12-2007 1:17 PM
Hi
I have read a lot of forums, etc and changed much on my adapter, but still get a xml file send as an attachment instead of a text file.
Can anyone please advise on how to change the receiver adapter to covert from xml to text.
I have added the module processing sequence like follow - please help.
Processing sequence
localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean Mail
Module configuration
XML2Plain Details.endSeparator 'nl'
XML2Plain Details.fieldName ZINDUS,TCODE,TDATE,RDATE
XML2Plain Details.fieldSeparator |
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion xml/txt
XML2Plain Transform.ContentDisposition attachment;filename="TEBA.txt"
XML2Plain Transform.ContentType xml/plain
XML2Plain xTransform.recordsetStructure Details
Thanks
Clinton
Set your parameters according to this guide:
In the title is mentioned "JMS adapter" but the conversion workes in mail adapter as well.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
From the mail adapter FAQ,
<i>How can I set the file name of a mail attachment?
There are several MIME headers that play a role in how the client retrieves the file name of an attachment. Unfortunately, this behavior differs among various mail clients. The reason for this inconsistent behavior comes from the fact that this mechanism has been extended incrementally. The old way is to use the name parameter in the Content-Type header as specified in RFC1341. For example, you can set the content type of an XML attachment as:
Content-Type: application/xml; name="abc.xml"
RFC1521 discourages the use of this name parameter in anticipation of the new header Content-Disposition, which is defined in RFC1806.
With this Content-Disposition header, you can set the file name as:
Content-Disposition: attachment; filename="abc.xml"
Some clients may show the Content-Description value as the file name. The Content-Description header is typically used to associate some descriptive information to an attachment (RFC1341) as in
Content-Description: my xml file
To avoid potential interpretation problems, it is recommended to combine the use of these headers.</i>
Also, the note 779981 describes how to set Content Type in the mapping program. Am not sure, but combining the two, maybe it should be possible! Havent tried something of this sort though!
Regards
Bhavesh
Clinton,
Check this weblog:
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
Check this it may help you:
/people/community.user/blog/2006/09/07/email-reporting
/people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
did you check my blog in which I described both ways
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shai
Here is a example of my xml in the attachment file.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SAP_Contractor_Details xmlns:ns0="http://lonmin.co.za/SAP_to_TEBA"><Details><ZINDUS></ZINDUS><TCODE>6002</TCODE><TDATE>20070111</TDATE><RDATE>00000000</RDATE></Details></ns0:MT_SAP_Contractor_Details>
Thanks
Clinton
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.