Posted: Thu Nov 28, 2002 6:13 am Post subject: Howto define complex choice message
Novice
Joined: 20 Nov 2002 Posts: 14
Hi there,
we try to define a message with the following structure:
Header1
-----------
Header2
----------
Choice:
Body1
Body2
none of Body1 and Body2
---------
The problem is that the choice compound type could have Body1 or
Body2 or none of them. It is possible to define a choice compound type
on level upper like this:
Take a look to the redbook "Developing solutions in WebSphere MQ Integrator" where you could find some example of how to implement this kind of messages.
Cheers, _________________ Lillo
IBM Certified Specialist - WebSphere MQ
If the application that is creating the message is willing to put a counter or indicator in the headers, you could make Body1 and Body2 occur depending on those counters. For example then if Cntr1 was 1 that would tell you Body1 was present, if it were Cntr2 was 1 Body2 was present and if it they were both 0 none would be present.
We used this concept for a project where we had an unknown combination of segments coming in on one message and those segments might occur more than once.
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