axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Crume (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-2452) WSDL2Java NOT map nillable type to wrapper class
Date Tue, 17 Apr 2007 18:51:15 GMT

     [ https://issues.apache.org/jira/browse/AXIS-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Crume updated AXIS-2452:
-----------------------------

    Affects Version/s: 1.4

I have this issue, too, using Axis 1.4 against a doc/lit web service.

> WSDL2Java NOT map nillable type to wrapper class
> ------------------------------------------------
>
>                 Key: AXIS-2452
>                 URL: https://issues.apache.org/jira/browse/AXIS-2452
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.3, 1.4
>         Environment: Linux plutonium 2.6.13-1.1532_FC4 #1 Thu Oct 20 01:30:08 EDT 2005
i686 i686 i386 GNU/Linux
> java version "1.4.1_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
>            Reporter: edward fan
>         Attachments: wsdl.zip
>
>
> wsdl code sample:
> /*************************************************************************/
>       <element name="addEClassifiedProductToCategory">
>         <complexType>
>           <sequence>
>             <element name="siteinfo" type="impl:SiteInfoType"/>
>             <element name="productid" type="xsd:int"/>
>             <element name="categoryid" type="xsd:int"/>
>             <element name="packageid" type="xsd:int" nillable="true"/>
>           </sequence>
>         </complexType>
>       </element>
> /*************************************************************************/
> Expected result: map "packageid" to Java "Integer" class
> [as described in the user-guide:
> If the WSDL says that an object can be nillable, that is the caller may choose to return
a value of nil, then the primitive data types are replaced by their wrapper classes, such
as Byte, Double, Boolean, etc.
> http://ws.apache.org/axis/java/user-guide.html#HowYourJavaTypesMapToSOAPXMLTypes
> ]
> Actual result: WSDL2Java always maps "packageid" to primitive type "int"
> /*********************************************************************************/
> public void addEClassifiedProductToCategory(com.cityxpress.external.SiteInfoType siteinfo,
int productid, int categoryid, int packageid) throws java.rmi.RemoteException, com.cityxpress.external.CXFaultType;
> /*********************************************************************************/

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


Mime
View raw message