|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSI - XML to MRM transformation |
« View previous topic :: View next topic » |
Author |
Message
|
bradhakrishna |
Posted: Tue Aug 27, 2002 11:19 pm Post subject: MQSI - XML to MRM transformation |
|
|
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 |
|
 |
jdouch |
Posted: Wed Aug 28, 2002 3:45 am Post subject: |
|
|
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 |
|
 |
lung |
Posted: Wed Aug 28, 2002 4:53 pm Post subject: |
|
|
 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 |
|
 |
lung |
Posted: Wed Aug 28, 2002 4:54 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|