cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <bim2...@basistech.com>
Subject RE: when to write maxOccurs
Date Wed, 10 Oct 2007 22:14:51 GMT
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