I'm wondering if the minOccurs / maxOccurs-Attribute are analyzed by the wsdl2java-Tool.
I noticed that there's always the same generated Class no matter what the maxOccurs says.
The tool seems to assume that it's always 1. For example I tested the following:
 
<complexType name="collection">
    <complexContent>
        <extension base="anyType">
        <sequence>
            <element ref="document" minOccurs="1" maxOccurs="10" />
        </sequence>
        </extension>
    </complexContent>
</complexType>
 
This generates a class Collection with the member document of type Document.
So there's only the possibility to specify one document -> maxOccurs="1"
I expected an array or something for the documents.
 
Is it a bug ? Anybody else out there who noticed this ?
 
Regards
    Dennis Reil
 

Reply via email to