|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message format CWF and variable length |
« View previous topic :: View next topic » |
Author |
Message
|
krish |
Posted: Mon Jun 10, 2002 11:06 am Post subject: Message format CWF and variable length |
|
|
Apprentice
Joined: 20 Apr 2002 Posts: 27
|
I had a message with CWF and the last elemnt length is going to vary. Eg It is not a fixed length. Is ther any way to handle it. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jun 10, 2002 12:02 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can handle variable length strings in CWF in two ways,
1. Select the physical Type as 'Null Terminated' and WMQI will look for hex nULL char, X'00' in your input message.
2. Have an interger field in the message, which defines the length for string element. This integer field must appear above the String element in the tree view of the message. Specify Length Type as Value Of for this string element. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
CodeCraft |
Posted: Mon Jun 17, 2002 1:02 pm Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
The possibility exists that this last element is not terminated or length encoded. However, you can get around this easily by pulling the message in as a BLOB, appending X'00', and then reparsing against an MRM CWF definition where the final element IS definited as null terminated. |
|
Back to top |
|
 |
Miriam Kaestner |
Posted: Wed Jun 19, 2002 12:43 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany
|
You could also set Length Units = End of Bitstream.
From Online Help: All data to the end of the bitstream is processed. (Valid only if this element is the last in the message. If you select this value, you do not need to enter a value for the properties Length Count or Length Value Of.) |
|
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
|
|
|
|