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 » MRM TO XML

Post new topic  Reply to topic
 MRM TO XML « View previous topic :: View next topic » 
Author Message
dsmq
PostPosted: Thu Aug 01, 2002 3:33 pm    Post subject: MRM TO XML Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Hi

can anybody tell me how to convert MRM message into XML Message.

my MRM message is in the format of

abc 900887 ghhjjjkk 756t74564568945 6487

Thanks
Back to top
View user's profile Send private message
sgopal
PostPosted: Thu Aug 01, 2002 4:38 pm    Post subject: Reply with quote

Acolyte

Joined: 30 Jul 2002
Posts: 63

In the compute node, you can code ESQL to directly map MRM elements to XML tags. for e.g.

SET OutputRoot.XML.A.FirstField = InputRoot.MRM.FirstMRMElement;
SET OutputRoot.XML.A.SecondField = InputRoot.MRM.SecondMRMElement;

and so on.
Back to top
View user's profile Send private message
muralihegde
PostPosted: Sun Aug 04, 2002 9:58 pm    Post subject: Reply with quote

Centurion

Joined: 30 Apr 2002
Posts: 108

Also Later you will need to use a RCD (Reset Content Descriptor) node to re-set the message domain to XML from MRM.

Also be sure not to do a full message copy(i.e don't do OutputRoot= InputRoot) copy only message headers in the compute node, else the message formed will have both XML and the MRM portion and will give error when you try to output the message into an MQ Output Node.

-Murali.
Back to top
View user's profile Send private message Yahoo Messenger
Nyusser
PostPosted: Sun Aug 04, 2002 10:47 pm    Post subject: Reply with quote

Apprentice

Joined: 02 Jul 2002
Posts: 48

The RCD node is not needed if the domain is set in the esql code itself:

SET OutputRoot.Properties.MessageDomain = 'XML';

The line above should be included into the compute node where the transformation from MRM to XML is done.
Back to top
View user's profile Send private message
mq_crazy
PostPosted: Tue Feb 22, 2005 1:48 pm    Post subject: Reply with quote

Master

Joined: 30 Jun 2004
Posts: 295

What if i have 300 tags in the incoming MRM message?? How to convert it without avoiding to write 300 lines of code??
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 22, 2005 1:53 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Why are you posting a reply to a message that is three years old?

Especially one that has been repeatedly asked by people who haven't learned the product yet.

The answer to this question is, you learn the product and you learn and understand the relationship between data modeling in the MRM and the code you have to write.

Then you determine for yourself exactly how much of a burden it is to maintain lines of code instead of models or models instead of lines of code.
_________________
I am *not* the model of the modern major general.
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 » MRM TO XML
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.