|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CWF minOccurs=0 not working |
« View previous topic :: View next topic » |
Author |
Message
|
MBExpert |
Posted: Mon Feb 01, 2010 8:44 am Post subject: CWF minOccurs=0 not working |
|
|
Novice
Joined: 22 Aug 2007 Posts: 14
|
Hi,
I am using a cwf messageset at input. When I am receiving message from client, last few fields are missing. Those fields are optional, and to specify that I made the minOccurs of those elements within messageset as 0. But still it gives parsing errors --> 'CPI Input data too short'.
I have tried with multiple options, specifying those fields as nillable, having them some defaults value (which by the way are also not being taken by mesageset). I even removed validation options (made it validatenone at MQInput). But nothing seems to work.
Any ideas?
Thanks, |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 01, 2010 2:00 pm Post subject: Re: CWF minOccurs=0 not working |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
MBExpert wrote: |
Hi,
I am using a cwf messageset at input. When I am receiving message from client, last few fields are missing. Those fields are optional, and to specify that I made the minOccurs of those elements within messageset as 0. But still it gives parsing errors --> 'CPI Input data too short'.
I have tried with multiple options, specifying those fields as nillable, having them some defaults value (which by the way are also not being taken by mesageset). I even removed validation options (made it validatenone at MQInput). But nothing seems to work.
Any ideas?
Thanks, |
If you are using a CWF format only the last field(/structure) can be optional and repetitive an unknown/undefined number of times.
All other repetitive structures / fields need an 'occurs' field located before the structure is reached to determine the number of occurrences.
Have fun  _________________ 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
|
|
|
|