Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsdl2java how to replace primitives?

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic