I thought that, in XML schema, maxOccurs='unbounded' was the default, and leaving out maxOccurs altogether has the same semantics.
> -----Original Message----- > From: Daniel Kulp [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 10, 2007 6:07 PM > To: [email protected] > Cc: Benson Margulies > Subject: Re: when to write maxOccurs > > On Tuesday 09 October 2007, Benson Margulies wrote: > > As it happens, Microsoft's tool for consuming WSDL files is not good > > at dealing with maxOccurs='unbounded'. Which is, AFAIK, the default > > value. How does CXF decide whether to write these attributes out? > > If anything is an array or a List, we use maxOccurs="unbounded" as we > have no indication what the size of the list or array may be. This is > a JAXB spec thing. > > -- > J. Daniel Kulp > Principal Engineer > IONA > P: 781-902-8727 C: 508-380-7194 > [EMAIL PROTECTED] > http://www.dankulp.com/blog
