|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[solved]Optional repeating elements with TDS |
« View previous topic :: View next topic » |
Author |
Message
|
jefflowrey |
Posted: Mon May 05, 2003 10:28 am Post subject: [solved]Optional repeating elements with TDS |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I've got a message structure mostly working with a TDS message set. The message looks like
Message (closed sequence tagged fixed length)
HeaderRecord (closed sequence fixed length)
TypeOneRecord (closed sequence fixed length)
OptionalRecords (choice)
TypeTwoRecord (closed sequence fixed length)
TypeFourRecord (closed sequence fixed length)
...
TypeOneRecord
...
TrailerRecord (closed sequence fixed length)
The records themselves are fixed length fields, with a tag identifying the record type.
I've got everything working except the optional records part. If I set things up the way I think I should, then if there are no optional records, the parser takes the next record as an optional record - even if it's the trailer.
How can I get this working? Or is it not possible to have completely optional records in a Tagged Fixed Length message?
Last edited by jefflowrey on Tue May 06, 2003 6:05 am; edited 1 time in total |
|
Back to top |
|
 |
drajib |
Posted: Mon May 05, 2003 9:07 pm Post subject: |
|
|
 Apprentice
Joined: 25 Mar 2003 Posts: 42 Location: India
|
Jeff,
I encountered the same problem (Pls. refer to post 'Help needed with Optional Repeating Segment in TDS').
Due to time constraint, I had to resolve it by modifying the message flow and introducing another message structure (without detail)
Flow modified with
- Filter Node (to test with or without detail)
- Accordingly to one of the two RCD nodes (with or without detail)
and so on.....
I would be obliged if you could let me know of a better and optimized way.
Best regards, |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 06, 2003 6:04 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Well, I don't know if I have a better way or not.
I was able to get something working, though, and this is how.
I changed my logical message model. Now, instead of grouping my optional records under their own tree, I have grouped them with the primary record.
This is what I've got now, that seems to work (and I'll try and get the formatting to work as well).
Code: |
Message (closed sequence tagged fixed length)
HeaderRecord (closed sequence fixed length)
Records (closed sequence tagged fixed length, repeat yes, min occurs =0)
TypeOneRecord (closed sequence fixed length, repeat no)
TypeTwoRecord (closed sequence fixed length, repeat yes, min occurs=0)
TypeFourRecord (closed sequence fixed length, repeat yes, min occurs=0)
...
Records
...
TrailerRecord (closed sequence fixed length)
|
So this gives me repeating Records elements, one for each TypeOne record. |
|
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
|
|
|
|