wood burning stoves 2.0*
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


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
 
GeeCON Prague 2014
 
subject: how do i make a field mandatory in my WSDL using axis2