cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver Mail Adapter: Modify XML Structure in Attachment

Former Member
0 Kudos

Hi,

i'm sending an Email with the Receiver Mail Adapter and i'm using the Mail Package. The Content is send as an Attachment.

The Mail Package looks like this:

<ns0:Mail xmlns:ns0="http://sap.com/xi/XI/Mail/30">

<Subject>Order</Subject>

<From>mymail@test.com</From>

<To>customermail@test.com</To>

<Content_Type>text/xml;name="Order.xml"</Content_Type>

<Content>

<LiefOrder>...</LiefOrder>

</Content>

</ns0:Mail>

The attachment "Order.xml" has the following content (With ... as the substructures of LiefOrder):

<LiefOrder>

...

</LiefOrder>

I want to achieve that the content of the attachment looks like this:

<?xml version="1.0" encoding="utf-8" ?>

<ns0:LiefOrder xmlns:ns0="http://mynamespace.com/lif">

...

</ns0:LiefOrder>

Any ideas how to get this done are welcome

regards,

ms

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

U may write a java mapping code to get ur required structure and map it to the "content" of ur mail inside the mapping. Then when u use "Keep Attachment", it will create the required thing in ur attachment.

Regards,

Prateek