axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JOVANOVIC Nenad <Nenad.JOVANO...@svc.co.at>
Subject [Axis2] Generating wrappers for (non-)optional elements with primitive types
Date Wed, 19 Jan 2011 14:53:18 GMT
Hi all,

the -Euwc option (introduced in https://issues.apache.org/jira/browse/AXIS2-3353) of org.apache.axis2.wsdl.WSDL2Java
generates wrappers for nillable (nillable="true") or optional (minOccurs="0") elements. However,
it also generates wrappers for types that are neither nillable nor optional. Is this behavior
intended? For details, see below.

Thanks,
Nenad Jovanovic


WSDL snippet:

    <xs:complexType name="Container">
        <xs:sequence>
            <!-- java.lang.Boolean will be used for all the following elements; expected
for myBoolean4: primitive type "boolean" -->
            <xs:element minOccurs="0" nillable="true" name="myBoolean1" type="xs:boolean"/>
            <xs:element minOccurs="0" nillable="false" name="myBoolean2" type="xs:boolean"/>
            <xs:element minOccurs="1" nillable="true" name="myBoolean3" type="xs:boolean"/>
            <xs:element minOccurs="1" nillable="false" name="myBoolean4" type="xs:boolean"/>
        </xs:sequence>
    </xs:complexType>

Code generation parameters in the Ant buildfile:

        <arg line="-uri ${wsdl.uri}"/>
        <arg line="-o ${build.dir}/service"/>
        <arg line="-ss"/>
        <arg line="-sd"/>
        <arg line="-s"/>
        <arg line="-Euwc"/>
        <arg line="-Eosv"/>
        <arg line="-ssi"/>
        <arg line="-uw"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message