[ 
https://issues.apache.org/jira/browse/AXIS2-4073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639435#action_12639435
 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-4073:
-----------------------------------------------------

added a new parameter to support this feature.

<parameter name="generateWrappedArrayTypes">true</parameter>

please have a test by setting this to services.xml

thanks,
Amila.

> 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to