on 05-08-2007 8:05 AM
Hi XI Gurus
We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -
1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
<xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">
<Subject>test 10</Subject>
<From>"Test User" <test.user@xyz.COM></From>
<To>"XI Test Account" <xitest@xyz.COM></To>
<Content_Type>text/plain;charset="us-ascii"</Content_Type>
<Date>2007-05-08T05:34:38Z</Date>
<Message_ID><FAD571F47AE5404C8E6D407435DEC0FD016B8272@office.xyz.com></Message_ID>
<Content>This is the voice of the Mysterons=0A</Content>
</xim:Mail>
Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
Question 2 - If you look at the content of the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?
2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.
Thanks in advance.
Salil
Hey Michal
Thanks for the reply. Could you elaborate on tthe first part please -
"if you have the attachment in payload you can it without any mapping
(this will it will unchanged) to a file adapter"
Thanks
Salil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot for that Michal.
It worked like a charm after following your blog to a "T". I am still faced with a problem though. The email attachment is a .csv file and the requirement is to either send the attachment unchanged to a file system through the file adapter ot convert it into IDOC.
What would be required for that?
Regards
Salil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if you have the attachment in payload you can it without any mapping
(this will it will unchanged) to a file adapter
of you can map it (java mapping, abap mapping)
and map it to IDOC - you can also use content conversion module
do map csv to xml format
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Hi,
>>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
do exactly as shown in my blog:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
>>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
do similarly as shown in my blog:
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
the everything will work
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.