Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatically created WSDL accepts nulls in input parameters

 
Hikari Shidou
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys.

I'm using eclipse and Axis2 to create a WebService from an existing class. It worked fine, I was able to deploy the WebService to a standalone Tomcat, great.

But when I look on its WSDL, each input parameter has minOccurs="0" and some have nillable="true". How could I set, preferably from the original class, which parameters can be null and which are required?

Here's the original class:



and its input and output elements:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic