cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Moesel" <Christopher_Moe...@avid.com>
Subject RE: when to write maxOccurs
Date Wed, 10 Oct 2007 22:22:36 GMT
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:bim2007@basistech.com] 
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:dkulp@apache.org]
> 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
> daniel.kulp@iona.com
> http://www.dankulp.com/blog

Mime
View raw message