Skip to Content
avatar image
Former Member

Problem with message mapping

My input message is

xmlns:ns0="http://xyz">

<ScheduleData>

<line>test1</line>

</ScheduleData>

<ScheduleData>

<line>test2</line>

</ScheduleData>

</ns0:Receive_Schedules_Notification>

I want the target message like this:

xmlns:ns0="http:/xyz">

<ScheduleData>

<line>test1</line>

<line>test2</line>

</ScheduleData>

</ns0:Receive_Schedules_Notification>

How can I achive this in message mapping? Please help!

Thanks

Gopal

Edited by: GOPAL BALIGA on Jul 2, 2009 1:35 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Jul 02, 2009 at 11:46 AM

    Hi Gopal,

    below is the Map

    ScheduleData ---> Collapse Context ---> ScheduleDate

    line ---> RemoveContext -


    > Line

    regards,

    Chandra Shekhar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 11:46 AM

    Hi,

    Please try this:

    1. Maping for <ScheduleData>: constant -


    > <ScheduleData>

    2 .Mapping for <Line>: <line>(From source, change the context to the root node(higher then scheduleData))----><line> of the traget

    Alternate for the 2nd.

    <line>(From source,)-- -Remove context node function --


    ><line> of the traget

    Regards,

    Shweta.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 12:54 PM

    Hi

    Mapping will be like this

    Constant ---> scheduel

    item ---> Remove Context(node function) ---> item

    I agree with Swetambari's reply.

    VS

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 01:24 PM

    Map line (Source) -


    > line (Target)

    raise the Context of the source line node to a node above the ScheduleData (in your case it sems to be Receive_Schedules_Notification)....check it and let me know...

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 01:55 PM

    Hi GOPAL

    It' not complicated. only need map like this.

    Target Source

    ScheduleData Use [Const] or maybe use ScheduleData - [collapse contex]

    line Use line- [RemoveContext]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 02:08 PM

    Hi,

    You can try out by changing the context at node level .....

    And Use remove context followed by Split by value to target

    Best Regards,

    Sainath

    Edited by: Sainath Chutke on Jul 2, 2009 4:08 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 03, 2009 at 06:55 AM

    input message

    ns0:Receive_Schedules_Notification
       ScheduleData  1-----unbounded
         linen               1
    

    target message

    ns0:Receive_Schedules_Notification
       ScheduleData  1
         linen               1-----unbounded

    Do the mapping as follows

     ScheduleData  (source )---- ScheduleData  (target)
     linen(source)----remove context ---line(target)
    

    Add comment
    10|10000 characters needed characters exceeded