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=21389>. 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=21389 WSDL2Java complex type array handling broke in v1.1 (worked in v1.0) ------- Additional Comments From [EMAIL PROTECTED] 2003-07-17 01:16 ------- I seem to be running into this problem as well. In the attachment above, I have a sample "bugservice.wsdl" file and the files generated from WSDL2Java. >From the "bugservice.wsdl" file, the ProductionItem type is defined to contain an array of ProductionLoadItems: <s:complexType name="ProductionItem"> <s:sequence> <s:element name="size" type="s:int"/> <s:element name="pProductionLoadItem" atls:SizeIs="size" nillable="true"> <s:complexType> <s:complexContent> <s:restriction base="soapenc:Array"> <s:attribute ref="soapenc:arrayType" wsdl:arrayType="s0:ProductionLoadItem[]"/> </s:restriction> </s:complexContent> </s:complexType> </s:element> </s:sequence> </s:complexType> However, if you look at the generated "ProductionItem.java" file, the type description for the "pProductionLoadItem" field is set incorrectly to "ProductionLoadItem". elemField.setFieldName("PProductionLoadItem"); elemField.setXmlName(new javax.xml.namespace.QName ("urn:bugservice", "pProductionLoadItem")); elemField.setXmlType(new javax.xml.namespace.QName ("urn:bugservice", "ProductionLoadItem")); It seems to me that the correct behavior should be to set the type to "ProductionLoadItem[]" (i.e. an ARRAY of ProductionLoadItems, not a ProductionLoadItem itself).
