cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with message mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

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)

Former Member
0 Kudos

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

Former Member
0 Kudos

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]

former_member200962
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi

Mapping will be like this

Constant ---> scheduel

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

I agree with Swetambari's reply.

VS

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Gopal,

below is the Map

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

line ---> RemoveContext -


> Line

regards,

Chandra Shekhar