This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes Automatically created WSDL accepts nulls in input parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Automatically created WSDL accepts nulls in input parameters" Watch "Automatically created WSDL accepts nulls in input parameters" New topic
Author

Automatically created WSDL accepts nulls in input parameters

Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
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:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automatically created WSDL accepts nulls in input parameters
 
Similar Threads
XmlException on calling WSDL2Java
complextype with Axis2
Axis2 POJO web service - wsdl generating xs:anyType
How to make Axis2 bottom-up webservice make minOccurs="1" nillable="false"
How to use enum types with Axis2?