Here is the documentation on this from user guide
----------------------------------------
Standard mappings from WSDL to Java
xsd:base64Binary byte[]
xsd:boolean boolean
xsd:byte byte
xsd:dateTime java.util.Calendar
xsd:decimal java.math.BigDecimal
xsd:double double
xsd:float float
xsd:hexBinary byte[]
xsd:int int
xsd:integer java.math.BigInteger
xsd:long long
xsd:QName javax.xml.namespace.QName
xsd:short short
xsd:string java.lang.String
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.
-----------------------------------------------
This means that the your wsdl is saying that it is actually mapped to Integer.
Sekhar
-----Original Message-----
From: Heitzeg, Bill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 17, 2004 10:06 AM
To: [EMAIL PROTECTED]
Subject: RE: wsdl2java mapping primitives to objects
Thanks Matt,
Unfortunately, the WSDL does specify that the element is nillable, but it is still being mapped to an int. In the wsdl the element looks like: <element name="sailMinLenDays" nillable="true" type="xsd:int" />
Bill
Bill Heitzeg
1-734-995-9131
-----Original Message-----
From: Matthew Sgarlata [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 17, 2004 10:42 AM
To: [EMAIL PROTECTED]
Subject: Re: wsdl2java mapping primitives to objects
I believe that if the WSDL specifies that the field is nillable, then
xsd:int is mapped to Integer instead of int. Can you change your WSDL?
Matt
----- Original Message -----
From: "Heitzeg, Bill" <[EMAIL PROTECTED]>
To: "Axis-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, February 17, 2004 10:30 AM
Subject: wsdl2java mapping primitives to objects
Hi,
When I generate a client using wsdl2java, xsd:int is mapped to a java int
type. I would like it to be mapped to an Integer. Does anyone know how to
do this?
Thanks,
Bill
Bill Heitzeg
1-734-995-9131