State machine notation UML Notation .1 Class diagrams

Copyright © 2010 Open Geospatial Consortium 11 6.2 Version numbering and negotiation

6.2.1 Version number form and value

Version numbers shall be encoded as described in 7.3.1 of OGC 06-121r3. Implementations of this International Standard shall use the value 2.0.0 as the protocol version number.

6.2.2 Appearance in service metadata and in requests

A web feature server that conforms to this International Standard shall list the version 2.0.0 in its service metadata see 8.3. A server may support several versions whose values clients can discover according to a set of version negotiation rules see OGC 06-121r3, 7.3.2. The version number used in requests to a server shall be equal to a version number that the server has declared it supports except during negotiation as described in 6.2.3. If the server receives a request with a version number that it does not support, the server shall raise an InvalidParameterValue exception see 7.5. The version number 2.0.0 shall be specified for any request that conforms to this International Standard.

6.2.3 Version number negotiation

All WFS implementations shall support version negotiation according to the rules described in OGC 06- 121r3:2009, 7.3.2.

6.2.4 Request encoding

This International Standard defines two methods of encoding WFS requests. The first uses XML as the encoding language. The second encoding uses keyword-value pairs KVP to encode the various parameters of a request. EXAMPLE An example of a keyword-value pair is REQUEST=GetCapabilities where REQUEST is the keyword and GetCapabilities is the value. The KVP encoding is a subset of the XML encoding since KVP encoding is not amenable for encoding certain WFS operations, such as the Transaction operation. In both cases, the response to a request or exception reporting shall be identical. Table 2 correlates WFS operations and their encoding semantics as defined in this International Standard. Table 2 — Operation request encoding Operation Request Encoding GetCapabilities XML KVP DescribeFeatureType XML KVP GetPropertyValue XML KVP GetFeature XML KVP GetFeatureWithLock XML KVP LockFeature XML KVP Transaction XML CreateStoredQuery XML DropStoredQuery XML KVP ListStoredQueries XML KVP