File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Problem while using JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Problem while using JAXB" Watch "Problem while using JAXB" New topic
Author

Problem while using JAXB

Ravindra S Kshirsagar
Greenhorn

Joined: Jun 10, 2005
Posts: 1
Hi,
I am generating java classes form one .xsd file using JAXB. JAXB is generating setter and getter methods for all my xsd tags leaving one setter method for a tag.
This tag is -
<xs:element ref="sswfm:FormElement" minOccurs="0" maxOccurs="unbounded"/>

It is creating the getter method for this tag like this-
java.util.List getFormElement();
but do not create setter method.
And When i remove the minOccurs="0" maxOccurs="unbounded, it is creating the setter method for this tag.But i want to keep this tag as it it and needs the setter method also.
What should i do?

Thank you in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while using JAXB
 
Similar Threads
JAXB - getting java class for an xml-tag
Three Optional Fields in a XML file but at least on of them is required
Axis2 POJO web service - wsdl generating xs:anyType
Setter method for element with maxOccurs="unbounded"
XSD - all unbounded question ??