ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Use of Mapping Node

Post new topic  Reply to topic
 Use of Mapping Node « View previous topic :: View next topic » 
Author Message
javaforvivek
PostPosted: Tue Oct 19, 2004 3:00 am    Post subject: Use of Mapping Node Reply with quote

Master

Joined: 14 Jun 2002
Posts: 282
Location: Pune,India

Hi I have an input message as follows:
<Documents>
<Document> -- Multiple Occurrences
<Header>
<H1>header1</H1>
<H2>header1</H2>
</Header>
<Details> -- Multiple Occurrences
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Details>
<Details>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Details>
</Document>
<Document>
<Header>
<H1>header2</H1>
<H2>header2</H2>
</Header>
<Details> -- Multiple Occurrences
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Details>
<Details>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Details>
</Document>

</Documents>

I want output as follows:
<File>
<Line>
<H1>header1</H1>
<H2>header1<H2>
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Line>
<Line>
<H1>header1</H1>
<H2>header1<H2>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Line>
<Line>
<H1>header2</H1>
<H2>header2<H2>
<Tag1>details1</Tag1>
<Tag2>details1</Tag2>
<Tag3>details1</Tag3>
</Line>
<Line>
<H1>header2</H1>
<H2>header2<H2>
<Tag1>details2</Tag1>
<Tag2>details2</Tag2>
<Tag3>details2</Tag3>
</Line>
</File>
Can I use Mapping Node here? If yes, then how?
I have done this using Compute Node, but it requires lot of looping....
_________________
Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
waugh
PostPosted: Tue Oct 19, 2004 5:26 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

Vivek,

you need to have those 2 message structures defined in a message set. then you can use mapping node.

right click mapping node --> open mappings.
select source and target messages...
and do a drag and drop.

I hope this helps, I am assuming you are using WBIMB 5.0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Use of Mapping Node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.