Author |
Message
|
parthiba_s |
Posted: Wed Jun 18, 2003 5:15 am Post subject: Tag delimited message set |
|
|
Novice
Joined: 12 Sep 2002 Posts: 20
|
Hai All
I have to convert an XML to a Tagged delimited message and an Tagged delimited message back to an XML. Can you give me any pointers? Any links to books or documents is highly appreciated.
Regards
S.Parthiban |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 18, 2003 5:40 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Create a message set that describes your data. Add both a TDS and an XML Physical layer to the message set. Configure the element properties of each appropriately.
In your message flow, set the properties of your MQInput node to parse the message as TDS.
Add ESQL to SET OutputRoot.Properties.MessageFormat = the name of the appropriate physical layer. So if you named your XML layer 'XML', then you would set the MessageFormat to 'XML' to output as XML. |
|
Back to top |
|
 |
parthiba_s |
Posted: Wed Jun 18, 2003 6:04 am Post subject: |
|
|
Novice
Joined: 12 Sep 2002 Posts: 20
|
What setting do I do for TAGS and Delimiters? I getting only a continues string (Like CWF) what are the setting I have to do on the message set ..? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jun 18, 2003 9:11 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You'll have to create a logical model of your message, and assign the appropriate values for each physical format to each element in that logical model.
Suppose your message consists of four items like this AAAAA1111BBBBBB99999.
Then you create a logical model that describes a message containing four elements. The message is described as a closed sequence. For the TDS properties, you would set the message to be a fixed length. The first element is a String element with a TDS length of 5. The second element is an Integer with a TDS length of 4. The third element is a String with a TDS length of 6. The last element is an Integer element with TDS length of 5.
You would then set the XML properties to create the tags you want.
You should read the Working With Messages guide for more information. |
|
Back to top |
|
 |
Craig B |
Posted: Wed Jun 18, 2003 9:32 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
The Working With Messages book discusses the general overview of the logical message model and then goes through each of the physical formats of CWF, XML and TDS. At the end of each of these sections they have an example called "modelling the Video customer message" which goes through the same example for each of these main formats. Hopefully you can apply these help model your messageSet to provide the transformations you require.
Some other gener sources of information that you may find useful are :
1) Redbook : Developing Solutions in Websphere MQ integrator, which covers some aspects of the MRM including TDS. This can be found from the following site : http://www.ibm.com/redbooks
2) Supports pacs on the following site : http://www-3.ibm.com/software/integration/support/supportpacs/product.html#wmqi :
i) IA7A : MRM Primer
ii) ID05 : Tagged/Delimited Message examples
iii) ID08 : Validation examples
These may not be specific to your scenario but did give further information regarding these aspects of the MRM _________________ Regards
Craig |
|
Back to top |
|
 |
parthiba_s |
Posted: Thu Jun 19, 2003 8:36 pm Post subject: |
|
|
Novice
Joined: 12 Sep 2002 Posts: 20
|
Thanks a lot I will try out these options and revert back. |
|
Back to top |
|
 |
|