You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (JIRA)" <ji...@apache.org> on 2012/07/17 14:26:35 UTC

[jira] [Resolved] (AXIS2-4073) Extend the schema generation providing ability to generate wrapped array types

     [ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org