[Geoserver-devel] WFS 1.1 GetCapabilities-Response does not validate

Hello everybody,

the WFS 1.1 GetCapabilities-Response does not validate.
(GeoServer 2.2 beta2)

DefaultSRS <> DefaultCRS

cvc-complex-type.2.4.a: Invalid content was found starting with element 'DefaultCRS'. One of '{"http://www.opengis.net/ows&quot;:Keywords, "http://www.opengis.net/wfs&quot;:DefaultSRS, "http://www.opengis.net/wfs&quot;:NoSRS\}' is expected. [109]

Best regards
Juergen Weichand

On Fri, Jun 1, 2012 at 2:08 PM, Jürgen Weichand <juergen.weichand@anonymised.com> wrote:

Hello everybody,

the WFS 1.1 GetCapabilities-Response does not validate.
(GeoServer 2.2 beta2)

DefaultSRS <> DefaultCRS

cvc-complex-type.2.4.a: Invalid content was found starting with element
‘DefaultCRS’. One of ‘{“http://www.opengis.net/ows”:Keywords,
http://www.opengis.net/wfs”:DefaultSRS,
http://www.opengis.net/wfs”:NoSRS}’ is expected. [109]

Can I see the request you made? If you did not specify the version in GeoServer 2.2 beta2
you’ll get a WFS 2.0 capabilities document, which uses DefaultCRS as the specification
changed and demanded this new name

If your client does not support version negotiation you can probably give it the following
capabilities url that makes the version you want explicit:

http://host:port/geoserver/ows?service=wfs&version=1.1.0&request=GetCapabilities

Cheers
Andrea


Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

ACtually this was a bug until about two days ago when https://jira.codehaus.org/browse/GEOS-4545 was committed. Andrea is correct, in wfs 2.0 its DefaultCRS and in 1.1 it is DefaulltSRS, but the issue was 1.1 was using the wfs 2.0 version. Fixed now, should be present in the latest nightly build.

On Fri, Jun 1, 2012 at 6:24 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Fri, Jun 1, 2012 at 2:08 PM, Jürgen Weichand <juergen.weichand@anonymised.com> wrote:

Hello everybody,

the WFS 1.1 GetCapabilities-Response does not validate.
(GeoServer 2.2 beta2)

DefaultSRS <> DefaultCRS

cvc-complex-type.2.4.a: Invalid content was found starting with element
‘DefaultCRS’. One of ‘{“http://www.opengis.net/ows”:Keywords,
http://www.opengis.net/wfs”:DefaultSRS,
http://www.opengis.net/wfs”:NoSRS}’ is expected. [109]

Can I see the request you made? If you did not specify the version in GeoServer 2.2 beta2
you’ll get a WFS 2.0 capabilities document, which uses DefaultCRS as the specification
changed and demanded this new name

If your client does not support version negotiation you can probably give it the following
capabilities url that makes the version you want explicit:

http://host:port/geoserver/ows?service=wfs&version=1.1.0&request=GetCapabilities

Cheers
Andrea


Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf


Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Okay Thanks :slight_smile:

···
-- 

Jürgen Weichand
Landesamt für Vermessung und Geoinformation
- Betrieb GeodatenOnline, Schnittstellen zu Spezialanwendungen  -
Alexandrastrasse 4
D-80538 München

Tel:    +49 (0)89 / 2129 - 2984
Mail:   [Juergen.Weichand@anonymised.com](mailto:Juergen.Weichand@anonymised.com)
Web:    [http://www.geodaten.bayern.de](http://www.geodaten.bayern.de)