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 » MQSI - XML to MRM transformation

Post new topic  Reply to topic
 MQSI - XML to MRM transformation « View previous topic :: View next topic » 
Author Message
bradhakrishna
PostPosted: Tue Aug 27, 2002 11:19 pm    Post subject: MQSI - XML to MRM transformation Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 10

Hi All,
What are the steps we need to do to transform a self defining (generic) XML message to a MRM format. Basically for removing all the tags in the input XML message and keeping only the data.

if my input message is like:
<Body> <Message CompanyName = ABCD Address = XXXXXXXXX </Body>

I would like this get transformed to:
ABCDXXXXXXXXX

Thanks for the help..
Back to top
View user's profile Send private message Send e-mail
jdouch
PostPosted: Wed Aug 28, 2002 3:45 am    Post subject: Reply with quote

Apprentice

Joined: 31 May 2002
Posts: 32
Location: London, UK

Hi,

you need to define an MRM message in the message sets view which defines the message structure to which you want to transform your XML to. From your example you need to define a message which will have two elements CompanyName and Address.

Then create a message flow with an input node specifying XML as the domain, then a compute node - open up the code window , click on Add in the top right corner to select the message set you have just created. Do all your esql mappings from XML to MRM using

OutputRoot.MRM.XYZ = InputRoot.XML.XYZ

then Add an output node.

Deploy your message flow to the execution group, and the message set to the broker. If you don't deploy the message set it won't work !

hope this helps

J
_________________
Julian Douch
E-business Solutions Consultant

WMQ/WMQI Specialist
Back to top
View user's profile Send private message Send e-mail
lung
PostPosted: Wed Aug 28, 2002 4:53 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Quote:
you need to define an MRM message in the message sets view which defines the message structure to which you want to transform your XML to.


You also need to define a CWF layer format in your message set.

An alternative to jdouch's method is to define an XML layer format as well in your message set. Then, make sure you select MRM in your input node and message format set to XML. Of course, you need to define the message set and message type as well in the input node. In the compute node, just click on 'copy entire message' and add in one single line of ESQL...

SET OutputRoot.Properties.MessageFormat = 'CWF';

That will do the trick.
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
lung
PostPosted: Wed Aug 28, 2002 4:54 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Quote:
you need to define an MRM message in the message sets view which defines the message structure to which you want to transform your XML to.


You also need to define a CWF layer format in your message set.

An alternative to jdouch's method is to define an XML layer format as well in your message set. Then, make sure you select MRM in your input node and message format set to XML. Of course, you need to define the message set and message type as well in the input node. In the compute node, just click on 'copy entire message' and add in one single line of ESQL...

SET OutputRoot.Properties.MessageFormat = 'CWF';

That will do the trick.
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQSI - XML to MRM transformation
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.