Great! Well done. Please let us know if you encounter any further
difficulties.
Kind regards,
Ben.
On 13/10/11 16:35, TRD wrote:
Finally I got it working (as no error appears anymore). The last error showed
up because a mismatch of namespaces. After correcting them everything seems
to work
The file is shortened to contain only one FeatureType, in detail
Hauskoordinate which is used in the mapping. I did not edit the version in
my app-schema-cache directly. I edited the file located at my localhost and
deleted the file in the cache. This schema file does contain an element with
the
If you are serving the schema from localhost via GeoServer, it will not
be located, because GeoServer tries to download the schema (for
app-schema) before GeoServer starts serving content. Or are you using
another server on localhost?
Try installing your schema in:
This is the schema file called dog_hk.xsd:
?xml version=1.0 encoding=UTF-8?
schema targetNamespace=http://www.lverma.nrw.de/namespaces/dog;
xmlns:dog=http://www.lverma.nrw.de/namespaces/dog;
xmlns:gml=http://www.opengis.net/gml;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
Should element-FormDefault be elementFormDefault? And should
substitution-Group be substitutionGroup? Please resend as an attachment
to ensure it is not being corrupted by email reformatting.
Your schema element has no xmlns=http://www.w3.org/2001/XMLSchema;
which I thought was required to
You are totally right, those - were in the original xsd-file and truly are
not wanted there. I removed them and added the missing XMLSchema namespace.
This solved the occurence of the error No top level element found in
schemas but instead I'm getting XSD type definition not found in schemas:
Finally I got it working (as no error appears anymore). The last error showed
up because a mismatch of namespaces. After correcting them everything seems
to work fine for now :D
--
View this message in context:
TRD,
your message describes encountering an error, but does not give any
details. Do you see any errors in geoserver.log when it starts? Do you
see any errors when you attempt to query the service?
What is the nature of your error?
I assume that you have configured your data store as
What exactly do you mean when you say This schema file is shortened so
it only contains the referenced featureType? Did you edit the version
in your app-schema-cache?
Note that the schema must contain an element with the name of the WFS
feature type. (A WFS type name is a schema element name.)