[ https://issues.apache.org/jira/browse/AXIS2-4073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735413#action_12735413 ]
Andreas Veithen commented on AXIS2-4073: ---------------------------------------- For reference: The change mentioned by Amila is in r704430 (the commit comment didn't reference this issue correctly and the commit is therefore not visible in JIRA). > Extend the schema generation providing ability to generate wrapped array types > ------------------------------------------------------------------------------ > > Key: AXIS2-4073 > URL: https://issues.apache.org/jira/browse/AXIS2-4073 > Project: Axis 2.0 (Axis2) > Issue Type: New Feature > Components: kernel > Reporter: Detelin Yordanov > > Currently the schema generator will create unwrapped array schema types, e.g. > for a String[]: > <xs:complexType> > <xs:sequence> > <xs:element maxOccurs="unbounded" minOccurs="0" name="stringArray" > nillable="true" type="xs:string"/> > </xs:sequence> > </xs:complexType> > It would be valuable if it could also generate array types in wrapped format > which is the default behaviour in .NET and JAX-WS, e.g. > <xs:complexType> > <xs:sequence> > <xs:element minOccurs="0" name="stringArray" nillable="true" > type="ArrayOfString"/> > </xs:sequence> > </xs:complexType> > <xs:complexType name="ArrayOfString"> > <xs:sequence> > <xs:element maxOccurs="unbounded" minOccurs="0" name="string" > nillable="true" type="xs:string"/> > </xs:sequence> > </xs:complexType> > The wrapped format has certain benefits over the unwrapped one, more on this > can be found in this article: > http://www.ibm.com/developerworks/webservices/library/ws-array/ . > This option can possibly be configured with a parameter in the axis2 > configuration (or per service level). > The parameter could be named "generateWrappedArrayTypes" or something like > this. The default should be not to generate wrapped array types as it is > right now providing backward compatibility. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.