axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14218] New: - MinOccurs=0 not added to wsdl for arrays
Date Mon, 04 Nov 2002 10:15:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14218>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14218

MinOccurs=0 not added to wsdl for arrays

           Summary: MinOccurs=0 not added to wsdl for arrays
           Product: Axis
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: ajbanck@informatica.com


When creating a property with an array:
public class DataClass {
    public String[] Users;
}

The generated wsdl is:
   <complexType name="DataClass">
    <sequence>
     <element maxOccurs="unbounded" name="Users" nillable="true" 
type="xsd:string"/>
    </sequence>
   </complexType>

The default value of minOccurs=1, so by not having minOccurs=0 in the wsdl, the 
array is defined to be of length >= 1, and an array of length 0 is invalid.

Expected wsdl:
   <complexType name="DataClass">
    <sequence>
     <element minOccurs="0" maxOccurs="unbounded" name="Users" nillable="true" 
type="xsd:string"/>
    </sequence>
   </complexType>

Mime
View raw message