[prev in list] [next in list] [prev in thread] [next in thread]
List: rampart-dev
Subject: [jira] Created: (AXIS2-4942) WSDL2Java: Wrapper types for
From: "Nenad Jovanovic (JIRA)" <jira () apache ! org>
Date: 2011-01-27 9:43:44
Message-ID: 32584648.235641296121424433.JavaMail.jira () thor
[Download RAW message or body]
WSDL2Java: Wrapper types for non-optional elements
--------------------------------------------------
Key: AXIS2-4942
URL: https://issues.apache.org/jira/browse/AXIS2-4942
Project: Axis2
Issue Type: Bug
Affects Versions: 1.5.1, 1.5.4
Reporter: Nenad Jovanovic
Priority: Minor
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 - but only for primitives inside container types, \
not for primitives that are directly exposed on the interface.
For example, a boolean with the WSDL attributes nillable="false" and minOccurs="1" \
results in a primitive type (after WSDL2Java) if it is an immediate input or output \
value of a function. However, if it is contained in some other object, the wrapper \
type Boolean is generated.
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"/>
--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic