Yoiks. Then it's mighty hard to make a schema that works with VS2005! I
guess I have more things to talk to the Microsoft guy about.

> -----Original Message-----
> From: Christopher Moesel [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 10, 2007 6:23 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: when to write maxOccurs
> 
> Nope-- the default value for both minOccurs and maxOccurs is 1.  So,
if
> you have neither, it means it expects exactly 1 element.
> 
> -Chris
> 
> -----Original Message-----
> From: Benson Margulies [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 10, 2007 6:15 PM
> To: Daniel Kulp; cxf-user@incubator.apache.org
> Subject: RE: when to write maxOccurs
> 
> 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: cxf-user@incubator.apache.org
> > 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

Reply via email to