Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

    Bookmark Topic Watch Topic
  • New Topic