aspose file tools*
The moose likes Web Services and the fly likes wsdl2java how to replace primitives? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdl2java how to replace primitives?" Watch "wsdl2java how to replace primitives?" New topic
Author

wsdl2java how to replace primitives?

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hi all,
When generating Java files from WSDL using AXIS2 wsdl2java utility,
Is it possible to tell the utility to generate Boolean object for boolean fields?
For example the field toStartNewSession in the WSDL:



Will be translated to :
Boolean toStartNewSession insead of boolean toStartNewSession
Thank you!

Vijay keshava
Ranch Hand

Joined: Jul 05, 2011
Posts: 40
Here is a statement from wsdl2java that may help.

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.
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Vijay keshava wrote:Here is a statement from wsdl2java that may help.

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 helps!
Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsdl2java how to replace primitives?