Skip to main content

How do I tag a parameter to be mandatory in wsdl?

2 replies [Last post]
astast69
Offline
Joined: 2006-03-22

I know that a java simple type will be mandatory but I want my java class (e.g. String) to be mandatory as well.

How do I do that? Can't find anything in @WebParam

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nnanda
Offline
Joined: 2009-04-21

Hi,

In WSDL, any tag can be made mandatory by making "maxOccurs=1". In POJO classes, check for any JAXB annotation if that provides similar functionality.

Best,
Niranjan

nnanda
Offline
Joined: 2009-04-21

Sorry; minOccurs=1