Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Unable to generate group instance in Java class
Unable to generate group instance in Java class [message #596447] Wed, 21 September 2005 16:18
Eclipse UserFriend
Originally posted by:

Hi Everyone!

I am very new to Java and WebServices and i hope to be able to describe
clearly my problem.

I am working on a webservice that is using very complex schemas
definitions (OAGIS).
We used Eclipse for the java classes auto generation and we have problems
every time we want to generate instance of elements that are part of a

For example, if in the schema we had:

<xsd:complexType name="QualificationTermType">
<xsd:element ref="ID" minOccurs="0"/>
<xsd:element ref="Type" minOccurs="0"/>
<xsd:element ref="ValueText" minOccurs="0" maxOccurs="unbounded"/>
<xsd:group ref="FreeFormTextGroup"/>
<xsd:element ref="UserArea" minOccurs="0"/>
<xsd:attribute name="type" type="NormalizedStringType" use="optional"/>

<xsd:group name="FreeFormTextGroup">
<xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="Note" minOccurs="0" maxOccurs="unbounded"/>

Eclipse generated QualificationTermType class with ID, Type, ValueText and
USerArea attributes but no classes for the FreeFormTextGroup and neither
connections from the QualificationTermType class to it.

Testing with Eclipse Web Services Explorer, the complexType
QualificationTermType cannot handle instances of Description or Note
(defined in the related group).
We have tried adding Description and Note as attributes to the
QualificationTermType class but this doesn't seem to make any changes.

Any ideas???!!!!!!!!!
Previous Topic:XSD serialization format
Next Topic:xs:redefine
Goto Forum:

Current Time: Sat Jan 23 02:45:04 GMT 2021

Powered by FUDForum. Page generated in 0.01700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top