[ http://issues.apache.org/jira/browse/AXIS-2020?page=comments#action_66546 ] Hans commented on AXIS-2020: ----------------------------
Patch works well, but only for first scenario. For soapenc arrays having an element with maxOccurs="unbounded" and nillable="true" wsdl2java still does not generate a wrapper. Because I thought that both cases were caused by the same problem I created one bug. I will submit another bug for the second testcase. > wsdl2java does not generate array of wrappers for array of nillable primitives > ------------------------------------------------------------------------------ > > Key: AXIS-2020 > URL: http://issues.apache.org/jira/browse/AXIS-2020 > Project: Axis > Type: Bug > Components: WSDL processing > Versions: 1.2 > Reporter: Hans > Attachments: 2020.txt, 2020.txt > > For the following xsd construct: > <xsd:complexType name="StructureType"> > <xsd:all> > <xsd:element name="fld1" type="xsd:int" > nillable="true" minOccurs="0" maxOccurs="unbounded"/> > <xsd:element name="fld2" type="s0:intarr" minOccurs="0"/> > </xsd:all> > </xsd:complexType> > <xsd:complexType name="intarr"> > <xsd:complexContent> > <xsd:restriction base="soapenc:Array"> > <xsd:sequence> > <xsd:element name="element" type="s:int" > nillable="true" minOccurs="0" maxOccurs="unbounded"/> > </xsd:sequence> > </xsd:restriction> > </xsd:complexContent> > </xsd:complexType> > wsdl2java from Axis 1.1 generates a Java Class like: > class StructureType implements Serializable { > private Integer[] fld1; > private Integer[] fld2; > ... > But in Axis 1.2 the following is generated: > class StructureType implements Serializable { > private int[] fld1; > private int[] fld2; > ... > This is incorrect - wrapper types should have been used for fld1 and fld2. > Also reproducable on the nightly 1.2.1 build of 27 may 2005. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira