|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XML to MRM in the flow ???? |
« View previous topic :: View next topic » |
Author |
Message
|
elvis_gn |
Posted: Wed Dec 01, 2004 8:13 pm Post subject: XML to MRM in the flow ???? |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi all,
I am trying to create a message flow which gets an input XML and has to only output a string concatenating the fields of the XML.The output is not an XML and should not have the tags.
I tried making the domain MRM,the wire format XML.
How do i give the line OutputRoot.MRM.....???? |
|
Back to top |
|
 |
Nizam |
Posted: Wed Dec 01, 2004 9:38 pm Post subject: |
|
|
Disciple
Joined: 10 Feb 2004 Posts: 160
|
Because your ouput is a concatenation of all the xml fields you just need one filed in your MRM.
In your ESQL extract the field values one after another and concatenate to form one big string.
Assign this string to your OutputRoot MRM field.
Your line will look something like
OutputRoot.MRM.YourField = contatenatedString;
I think you really dont need an MRM Message definition to do this. You can use BLOB instead. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Dec 01, 2004 9:51 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
what should i name my Domain and Wire format as ????
I have to work on 2.1 for this project and dont know the available options.
If i write OutputRoot.MRM.YourField......what will the final output be like ??
Is "YourField" set as the message body name ???? Do i have to declare it anywhere else also ???? |
|
Back to top |
|
 |
shanson |
Posted: Mon Dec 06, 2004 6:52 am Post subject: |
|
|
 Partisan
Joined: 17 Oct 2003 Posts: 344 Location: IBM Hursley
|
Create a message set (call it whatever you want) with runtime parser property = 'MRM', add a CWF physical format (call it whatever you want). Create a message (call it whatever you want) with one child element, a string, let's call it 'result'. On the CWF properties for the string set the physical type = 'Fixed length' then set the Length units property = 'End of bitstream'. Deploy the message set.
In your output properties specify MessageDomain=MRM, MessageSet=<name of message set>, MessageFormat=<name of physical format>, MessageType=<name of message>.
Your ESQL is OutputRoot.MRM.result = .....
Or you can use the BLOB domain as a later append suggests. |
|
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
|
|
|
|