aspose file tools*
The moose likes XML and Related Technologies and the fly likes convert java classes to .xsd xml schema in eclise 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 » Engineering » XML and Related Technologies
Bookmark "convert java classes to .xsd xml schema in eclise" Watch "convert java classes to .xsd xml schema in eclise" New topic
Author

convert java classes to .xsd xml schema in eclise

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
hi

i have simple java class , and i want convert it to xml schema in eclipse , any suggestions?

@XmlAccessorType(XmlAccessType.FIELD)
public class Contract{

@XmlElement(required = true, nillable = false)
private String contractID;

@XmlElement(required = true, nillable = false)
protected String contractNumber;

@XmlElement(required = true, nillable = false)
protected Date startDate;

@XmlElement(required = true, nillable = false)
protected java.util.Date endDate;

@XmlElement(required = true, nillable = false)
protected java.sql.Date gracePeriodEndDate;

@XmlElement(required = true, nillable = false)
protected List<PlanItem> planItem;

}

(generate web service , and there will be a .xsd file with data type)
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Check out the Eclipse Modeling Framework (EMF) for building applications based on a data model.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: convert java classes to .xsd xml schema in eclise
 
Similar Threads
web services client is not validating parameters
general web service definition question
Not able to get default value of XSD element in Java object
How to set minOccurs="1" in wsdl for an input parameter to web service method.
How to make Axis2 bottom-up webservice make minOccurs="1" nillable="false"