• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set minOccurs="1" in wsdl for an input parameter to web service method.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a web service implemented with apache cxf and spring. I have one web method which takes String argument as the input parameter. When I check the wsdl for this web method I see that the occurrence indicator minOccurs is set to 0 for the String input parameter. Here I want to set both minOccurs and maxOccurs to 1 to indicate that the input parameter is mandatory and singleton. To do this I used the annotation @Xmlelement and set its property required=true for the string input parameter, but this is not getting reflected in the wsdl. Am I doing something wrong here ? How do I get this right ?

Here is the code :


Thanks
Kavita
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic