cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with mail package - namespace

Chandra_Hota
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

email

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

Former Member
0 Kudos

Chandra,

Why don't you use XSL(T) instead. There you can define your own namespace.

Greets

stefan_grube
Active Contributor
0 Kudos

After changing the XML namespace in the message type, you have to reassign the message type to the mapping to make it work.

Chandra_Hota
Participant
0 Kudos

Hi Stefan

Where do i have to reassign the message type?

Please explain the steps to be done here.

Thanks

Former Member
0 Kudos

Chandra,

You have to update your Message mapping and Operational mapping after modification.

When this fails i suggest you use XSL mappings just for changing the nameSpace.

Greets

Former Member
0 Kudos

hi,

Go to message type.There you will find the xml namespace.change the Namespace.

Regards,

Prakasu

Chandra_Hota
Participant
0 Kudos

Hi

I tried giving the above namespace in sender message type, but it resulted in errors in message mapping.

I tried giving this in receiving namespace but it does not have any effect.

Thanks

Chandra

Former Member
0 Kudos

Chandra,

Do you want the target message to change namespace. If so add a XSL mapping to your Operational Mapping which has the SAP Xi XML als input and within the XSL transform this to your own.

Greets

Former Member
0 Kudos

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