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 "Detelin Yordanov (JIRA)" <ji...@apache.org> on 2008/10/08 11:05:44 UTC

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

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


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

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


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

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ 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.