aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
NX: Bodgitt and Scarper and design/synchronization questions
How to read XML data
Encoding and .net/Axis Interoperability
SQL Database Structure
Reading multiple CSV files