[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to