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: franni72.yahoo.com

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
group.

For example, if in the schema we had:

<xsd:complexType name="QualificationTermType">
<xsd:sequence>
<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:sequence>
<xsd:attribute name="type" type="NormalizedStringType" use="optional"/>
</xsd:complexType>

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

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???!!!!!!!!!
tanx
Francesca
Previous Topic:XSD serialization format
Next Topic:xs:redefine
Goto Forum:
  


Current Time: Sat Dec 20 14:28:42 GMT 2014

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

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