on 02-24-2009 11:49 AM
Hi All
I am trying to use mail package in my receiver mail adapter.
The mandatory elements for using mail package are:
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Hello</Subject>
<From>sender email</From>
<To>receiveremail</To>
<Content>This is a mail</Content>
</ns:Mail>
How can i get the above specified namespace? How can i override my existing namespace with this new one?
As i am using message mapping, I spicified message type's 'XML Namespace' field as "http://sap.com/xi/XI/Mail/30".
But even this doesnt help.
Thanks
Chandra
I am also trying to use the namespace. All seems to be working but I do not get the e-mail message sent to me. This what shows in my Technical routing payload. (FYI had to replace the "at" sign with "-" for this posting due to the limits for the forum software.)
<?xml version="1.0" encoding="utf-8" ?>
- <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<subject>824 test</subject>
<from>edi-na.modine.com</from>
<to>s.m.posnanski-na.modine.com</to>
<reply_to>edi_support-na.modine.com</reply_to>
<content_Type>text/plain</content_Type>
<content>Hello</content>
</ns:Mail>
I am usingXSL as an attachment and have the floowing defined in Module.
Processing Sequence
localejbs/AF_Modules/MessageTransformBean
CHAN
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
Module Configuration.
CHAN Transform.ContentDisposition attachment.filename="file.html"
CHAN Transform.ContentType text/html;charset=utf-8
This works fine when not using "Mail Package". I want to use mail package to be able to have a dynamic subject line for the e-mail.
Thanks.
Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chandra,
Why don't you use XSL(T) instead. There you can define your own namespace.
Greets
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After changing the XML namespace in the message type, you have to reassign the message type to the mapping to make it work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the default namespace provided by SAP and you can cannot produce the new one with same even if produced will not work as expected ,do just check the SAP BASIS package shipped with your installation and check there i think it should be there other wise search in SDN for michael blog which provides the link to this message type
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.