wsdl2java --------- Key: AXIS2-10 URL: http://issues.apache.org/jira/browse/AXIS2-10 Project: Axis2 Type: Bug Reporter: Quansheng Jia Assigned to: Davanum Srinivas
Hi; I use Axis1.2_RC2 and axis1.2_RC3 to build IFX (Interactive Financial Exchange) base WSDL2Java, I noticed that the tool fail to build correct java bean which mapping to XML schema: <xsd:sequence maxOccurs="unbounded"> For example: for below complex type, correct java bean API for MediaAcctAdjAddRq should be: Public void setMediaAcctAdjAddRq(int index, MediaAcctAdjAddRq mediaAcctAdjAddrq) { …… } Public MediaAcctAdjAddRq[] getMediaAcctAdjAddRq() { …… } The tool generate below incorrect APIs: Public void setMediaAcctAdjAddRq(MediaAcctAdjAddRq mediaAcctAdjAddrq) { …… } Public MediaAcctAdjAddRq getMediaAcctAdjAddRq() { …… } You can unzip the attachment and make necessary change on wsdl2java. Run the wsdl2java script and check Java bean, MediaSvcRq_Type.java to review the bug I reported. Thanks -- 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 - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira