|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TDS message set issue |
« View previous topic :: View next topic » |
Author |
Message
|
siri2083 |
Posted: Mon Oct 31, 2011 3:18 am Post subject: TDS message set issue |
|
|
Apprentice
Joined: 16 Apr 2009 Posts: 39
|
Hi,
I would like to enhance an existing TDS message set. my requirement is there a local group with comopition 'SEQUENCE' and content validation as 'CLOSED'.
This group contains a complex elememt with data element seperation as 'FIXED LENGTH' and this complex elements min occurence is 0 and Max occurence is 10.
there aound 4 sub elements inside it. each sub element can occur 0 or 1 time.
My message contains: Complex element repeated 2 times and in 2nd occurence contains only first 2 sub elements.
Message is not getting parsered and its throwing an error saying 'BIP5426E: The bitstream of a TDS message contains less data than expected.'
can anybody help me how to get this type of message can be parsed? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 31, 2011 1:28 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Fair question, and a fairly good problem description. It would help to have a more accurate description of the data format, though.
Quote: |
This group contains a complex elememt with data element seperation as 'FIXED LENGTH' and this complex elements min occurence is 0 and Max occurence is 10. There aound 4 sub elements inside it. each sub element can occur 0 or 1 time. |
I wonder how the parser can work out how many occurrences of the complex element there are. If DES=FixedLength then there are no tags, right? And what about those 4 sub-elements? How does the parser know whether the first one is there? or the second one?
So...please take some time to
a) Carefully describe your data format. Tell me how the parser can work out how many of each element there are in the data.
b) supply some example data ( but don't post anything confidential, of course ).
One more request: when you post your example data, please use [c o d e] tags to make the data easy to read. It's easy to do, and it makes my task much easier. |
|
Back to top |
|
 |
siri2083 |
Posted: Mon Oct 31, 2011 8:46 pm Post subject: |
|
|
Apprentice
Joined: 16 Apr 2009 Posts: 39
|
Hi Kimbert,
As per my understaning, whenever data element seperation is Fixed length for a complex type, parser does parsing based on lenth provided for each sub element in sequnce order.
For example:
A{Complex element} occurs 0 to 10 times
B{Simple element with length 2 bytes} occurs 0 to 1 times
C{Simple element with length 2 bytes} occurs 0 to 1 times
So the message will look like BBCCBBCCBBCCBBCCBBCCBBCCBBCCBBCCBBCCBBCC
My query here is if get only first 2 occurence out of 10 will my message get parsed. If not why will not get parserd?
Example: BBCCBBCC??? |
|
Back to top |
|
 |
kimbert |
Posted: Tue Nov 01, 2011 1:32 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Your model is ambiguous - there is no way for the parser to know whether simple elements B and/or C are present. Let me show you using a simple example:
Data : BBCC
Result 1: One occurrence of A with B='BB', and C='CC'
Result 2: Two occurrences of A. First one has B='BB', second one has B='CC'
Result 3: Two occurrences of A. First one has C='BB', second one has B='CC'
Result 4: Two occurrences of A. First one has B='BB', second one has B='CC'
Result 5: Two occurrences of A. First one has C='BB', second one has C='CC'
Now tell me which result is the correct one  |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 01, 2011 6:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
and I suspect you could also say:
20 occurrences of A
with 2 occurrences of B and 2 occurrences of C for each A...
But then the model said only 10 occurrences of A max ??
And as Kimbert rightly pointed out: we have nothing in the model to distinguish B from C ...
 _________________ MQ & Broker admin |
|
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
|
|
|
|