This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Reading multiple CSV files
Encoding and .net/Axis Interoperability
NX: Bodgitt and Scarper and design/synchronization questions
How to read XML data
SQL Database Structure