Skip to Content
author's profile photo Former Member
Former Member

Receiver Mail Adapter: Modify XML Structure in Attachment

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:

http://sap.com/xi/XI/Mail/30">

<Subject>Order</Subject>

mymail@test.com

customermail@test.com

<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" ?>

http://mynamespace.com/lif">

...

</ns0:LiefOrder>

Any ideas how to get this done are welcome 😉

regards,

ms

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 08, 2008 at 11:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.