I notice in your WSDL file your import the same namespace twice (each with a different schemaLocation), but this isn't valid. You may import a namespace only once. Note that your WSDL references types only in the gmlsVonCubeWerx.xsd file, so that is the only schemaLocaton that you must reference from the WSDL. (If that schema references elements or types from the other schema, then you would need to <xsd:include> that schema into the first schema.
Don't know if this is your problem, though, given that it seems to get fixed when you move the maxOccurs attribute from the <element> (correct) to the <sequence> (incorrect).
Anne
On 4/12/06, Desiree Hilbring <[EMAIL PROTECTED]> wrote:
Hello Anne,
I found a smaller example and I am sending the new schema files.
The problem lies in gmlsfVonCubeWerx.xsd. There I do have for example:
<sequence>
<element ref="gml:_SurfacePatch" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
which throws the Exception:
java.io.IOException: Type {http://www.opengis.net/gml}_SurfacePatch is referenced but not defined.
at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate (SymbolTable.java:518)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run (Thread.java:595)
When I change this to
<sequence maxOccurs="unbounded">
<element ref="gml:_SurfacePatch" minOccurs="0"/>
</sequence>
it works fine! ?
Greetings Desiree
> -----Ursprüngliche Nachricht-----
> Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 11. April 2006 22:18
> An: [email protected]
> Betreff: Re: IOException: Type xxx is referenced but not defined
>
> You didn't provide all the schema files, so I'm not able to
> locate the exact problem, but your error message clearly
> indicates that it is looking for a type called "Point":
>
>
> java.io.IOException: Type { http://www.opengis.net/gml}Point
> <http://www.opengis.net/gml%7DPoint> is referenced but not defined.
>
>
> "Point" is defined as an element, not a type.
>
> Anne
>
>
> On 4/11/06, Desiree Hilbring <
> [EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]> > wrote:
>
> Hello Anne,
>
>
> > Note, also, that you must specify the namespace and encoding
> > style attributes in the <soap:body> definitions in
> your bindings.
>
> I will do this.
> >
> >
> > On 4/11/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> >
> > Point is defined as an element, not a type. The type is
> > named "PointType".
>
> Can you explain that a little further? I am only
> referencing to point
> in the following way:
>
> <element name="Point" type="gml:PointType"
> substitutionGroup="gml:_GeometricPrimitive"/>
>
> <complexType name="PointPropertyType">
> <annotation>
> <documentation>A property that
> has a point as
> its value domain can either be an appropriate geometry element
> encapsulated in an
> element of this type or an
> XLink reference to a
> remote geometry element (where remote includes geometry
> elements located
>
> elsewhere in the same
> document). Either the
> reference or the contained element must be given, but
> neither both nor
> none.</documentation>
> </annotation>
> <sequence minOccurs="0">
> <element ref="gml:Point"/>
> </sequence>
> <attributeGroup
> ref="gml:AssociationAttributeGroup">
> <annotation>
> <documentation>This
> attribute group
> includes the XLink attributes (see xlinks.xsd). XLink
> is used in GML to
> reference remote
> resources (including
> those elsewhere in
> the same document). A simple link element can be constructed by
> including a specific
> set of XLink
> attributes. The XML Linking
> Language (XLink) is currently a Proposed Recommendation
> of the World
> Wide Web Consortium.
> XLink allows elements
> to be inserted
> into XML documents so as to create sophisticated links between
> resources; such links can be
> used to reference
> remote properties. A
> simple link element can be used to implement pointer
> functionality, and
> this functionality has
> been built into various
> GML 3 elements
> by including the gml:AssociationAttributeGroup.</documentation>
> </annotation>
> </attributeGroup>
> </complexType>
>
> I another schema the following is working okay and
> WSDL2Java creates
> SurfacePropertyType.java :
>
> <element name="_Surface" type="gml:AbstractSurfaceType"
> abstract="true"
> substitutionGroup="gml:_GeometricPrimitive">
> <annotation>
> <documentation>The "_Surface"
> element is the
> abstract head of the substituition group for all
> (continuous) surface
> elements.</documentation>
> </annotation>
> </element>
>
> <complexType name="SurfacePropertyType">
> <annotation>
> <documentation>A property that
> has a surface as
> its value domain can either be an appropriate geometry element
> encapsulated in an element of this type or an XLink
> reference to a
> remote geometry element (where remote includes geometry
> elements located
> elsewhere in the same document). Either the reference
> or the contained
> element must be given, but neither both nor
> none.</documentation>
> </annotation>
> <sequence minOccurs="0">
> <element ref="gml:_Surface"/>
> </sequence>
> </complexType>
>
> Where is the difference? Thanks for your help.
>
> Greetings Desiree
>
>
>
>
