Skip to Content

How add Message type in input XML file

Hi Expert,

My requirement is to add message type in the payload.

Data:

-

<Planning>

- < User UserID =" " FirstName =" Paradowski " LastName =" Margaret " MI =" " >

- < Form >

< input name =" txtPostitionId " value =" 1234 " />

< input name =" txtApplicantId " value =" 234567 " />

Expected data:

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

- < ns:MT_ABC xmlns:ns =" urn:sap:pi:abc_us " >

<Planning>

- <User UserID="" FirstName="Paradowski" LastName="Margaret" MI="">

- <Form>

<input name="txtPostitionId" value="1234" />

<input name="txtApplicantId" value="234567" />

Thanks,

Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Apr 16, 2013 at 05:53 AM

    Hi,

    You use XSLT Mapping.

    MM: source file to TEMP Target File.

    XSLT: TEMP Target File to target file ( Here you can use the logic to add your Message type as per you r business)

    See the below: examples:

    http://dev.ektron.com/blogs.aspx?id=10472

    Regards,

    Sreeni.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2013 at 03:34 PM

    Hi,

    Could you please elaborate your requirement. The message type will be there if you take the payload from test tab in the message mapping. You provide the input values to the source fields over there & then you can get the desired payload.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2013 at 05:13 PM

    Hi Kumar,

    why your data does not have xml header? (<?xml version="1.0" encoding="utf-8" ?>). Who is sending this xml? It will fail at message mapping step.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 16, 2013 at 04:31 AM

    Hi Team,

    Client is sending XML file without any header. I am adding encoding - utf-8 by adapter module. But I am not able to add Message type.

    Thats why I was asking how we can add message type in input xml payload.

    Thanks,

    Kumar

    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.