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 » Mapping question

Post new topic  Reply to topic
 Mapping question « View previous topic :: View next topic » 
Author Message
Neharika617
PostPosted: Tue Sep 06, 2005 6:26 am    Post subject: Mapping question Reply with quote

Newbie

Joined: 06 Sep 2005
Posts: 1

Hi
I have recently started using MQSI, so kindly forgive me if my questions are too silly.
I have my input XML as
<ccc>
<aa>123</aa>
<bb>234</bb>
<cc>234</cc>
</ccc>
and my outputXML as
<iii>
<xx>xyz="abc"</xx>
<yy>abc="123"</yy>
<zz>fgh="345"</zz>
</iii>
<iii>
<xx>xyz="wer"</xx>
<yy>abc="qty"</yy>
<zz>fgh="por"</zz>
</iii>
<iii>
<xx>xyz="cbs"</xx>
<yy>abc="lkj"</yy>
<zz>fgh="oiu"</zz>
</iii>
I have to map each of input elements to o/p ie<aa> in input to xyz in <xx> in output.
I did simple one-to-one mapping.But i had a doubt if that was the right way as the fileds are repeating in output.
Kindly let me know if I am correct.
Back to top
View user's profile Send private message
Meetraj
PostPosted: Tue Sep 06, 2005 9:24 am    Post subject: Reply with quote

Novice

Joined: 02 Jul 2005
Posts: 18
Location: India.

Hi,
I think it is enough to do one-one mapping,but take care to specify the maximum occurence of repertative tag(in u are case <XX>) as "-1" .So that the it can generate as many repetative tags as u specify.
Back to top
View user's profile Send private message
sweety176
PostPosted: Tue Sep 06, 2005 10:20 am    Post subject: reverse Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 30

HI Meetraj
Actually i have the reverse structure
I mean input is repeating and o/p is single
will it still be the same
Regards
Back to top
View user's profile Send private message
Meetraj
PostPosted: Tue Sep 06, 2005 10:36 am    Post subject: Reply with quote

Novice

Joined: 02 Jul 2005
Posts: 18
Location: India.

Hi,

Yes,i think within my knowledge it is same.But, pls look after u r msg definition file for the correct stucture on both sides.
Back to top
View user's profile Send private message
sweety176
PostPosted: Tue Sep 06, 2005 11:04 am    Post subject: SOLVED Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 30

Hi Meetraj
Thanks for ur reply.
I solved it.Actually it had repeating fields in the output too.
SO i used the cardinality function and used a loop to count the number of instances and then map one-to-one.
Regards
Neharika
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 » Mapping question
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.