When I write the following request --> http://myserver:8080/geoserver/wfs?request=GetFeature&typename=ntadfhwa_uza:ntadfhwa_uza,fire:fire I get the following:
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*" xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*" xmlns:gml="*http://www.opengis.net/gml*" xmlns:ntadfhwa_uza="*http://picasso.dlsi.uji.es/schemas/oklahoma/ntadfhwa_uza*" xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*" xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*">
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
<gml:coordinates decimal="*.*" cs="*,*" ts="">-98.53723199,34.5322885 -98.53723199,36.59758438 -94.43181798,36.59758438 -94.43181798,34.5322885</gml:coordinates>
</gml:Box>
</gml:boundedBy>
.
So, when I try to validate de response with a xml validator I get the following errors:
* ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'fire:fire'. One of
'{"http://www.opengis.net/gml":\_Feature\}' is expected.
* ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'fire:fire'. One of
'{"http://www.opengis.net/gml":\_Feature\}' is expected.
* ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'fire:fire'. One of
'{"http://www.opengis.net/gml":\_Feature\}' is expected.
* ERROR at line 2: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'fire:fire'. One of
'{"http://www.opengis.net/gml":\_Feature\}' is expected.
.
I think the bug is in this line:
xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=ntadfhwa_uza:ntadfhwa_uza,fire:fire*
because *ntadfhwa_uza and **fire prefixes belong to distinct namespaces (**http://picasso.dlsi.uji.es/schemas/oklahoma/fire and **http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza**and **respectively) , so geoserver should generate something similar to this:
*xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire
**http://picasso.dlsi.uji.es/schemas/oklahoma/**ntadfhwa_uza** http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=**ntadfhwa_uza:ntadfhwa_uza"\*
*
Any suggestion???
*
--
Miguel Ángel Esbrí
Dept. Information Systems
(Lenguajes y Sistemas Informáticos)
Universitat Jaume I
E-12071 Castellón, Spain
mailto:maesbri@anonymised.com
http://edugi.uji.es