[
https://issues.apache.org/jira/browse/AXIS2-4073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sagara Gunathunga resolved AXIS2-4073.
---------------------------------------
Resolution: Fixed
> Extend the schema generation providing ability to generate wrapped array types
> ------------------------------------------------------------------------------
>
> Key: AXIS2-4073
> URL: https://issues.apache.org/jira/browse/AXIS2-4073
> Project: 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.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]