This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes how do i make a field mandatory in my WSDL using axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how do i make a field mandatory in my WSDL using axis2" Watch "how do i make a field mandatory in my WSDL using axis2" New topic
Author

how do i make a field mandatory in my WSDL using axis2

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
I am exposing a simple web service using axis 2.

How do i make sure that the WSDL generates minOccurs=1
Lets say

I have a method


i want to make sure that data1 is mandatory and data2 is not.
WSDL always generated it as minOccurs=0 on runtime in Axis 2. Can i specify that data1 is mandatory and data2 is not in the code so that it can be reflected in WSDL


Money for nothing and Java for Free
SCJP, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do i make a field mandatory in my WSDL using axis2