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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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>