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 » Message format CWF and variable length

Post new topic  Reply to topic
 Message format CWF and variable length « View previous topic :: View next topic » 
Author Message
krish
PostPosted: Mon Jun 10, 2002 11:06 am    Post subject: Message format CWF and variable length Reply with quote

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
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon Jun 10, 2002 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
CodeCraft
PostPosted: Mon Jun 17, 2002 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Miriam Kaestner
PostPosted: Wed Jun 19, 2002 12:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message format CWF and variable length
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.