Predicate expression encoding Change Requests | OGC
Copyright © 2010 Open Geospatial Consortium
15 7.5 Exception reporting
In the event that a web feature service encounters an error while processing a request or receives an invalid request, it shall generate an XML document indicating that an error has occurred. The format of the XML error
response is specified by, and shall validate against, the exception response schema defined in Clause 8 of the OWS Common Implementation Specification see OGC 06-121r3:2009.
An ows:ExceptionReport element may contain one or more WFS processing exceptions specified using the ows:Exception element. The mandatory version attribute is used to indicate the version of the service
exception report schema. This value shall be 2.0.0. The optional language attribute may be used to indicate the language used. The code list for the language parameter is defined in IETF RFC 4646.
Individual exception messages are contained within the ows:ExceptionText element. The mandatory code attribute shall be used to associate an exception code with the accompanying message.
The optional locator attribute may be used to indicate where an exception was encountered in the request that generated the error. Table 3 indicates what value the locator parameter should have for each exception code.
16
Copyright © 2010 Open Geospatial Consortium
Table 3 — WFS exception codes
exceptionCode values Meaning of code
locator value Conformance Class
CannotLockAllFeatures A locking request with a lockAction of
ALL failed to lock all the requested features.
If the operation includes the optional handle parameter,
report its value as the value of the location parameter.
Locking WFS
DuplicateStoredQueryIdValue The identifier specified for a stored
query expression is a duplicate. The locator parameter shall
contain the value of the duplicate identifier.
Manage stored queries DuplicateStoredQueryParameterName This specified name for a stored
query parameter is already being used within the same stored query
definition. The locator parameter shall
list the name of the duplicate stored query parameter.
Manage stored queries
FeaturesNotLocked For servers that do not support
automatic data locking see 15.2.3.1, this exception indicates
that a transaction operation is modifying features that have not
previously been locked using a LockFeature see Clause 12 or
GetFeatureWithLock see Clause 13 operation.
If the operation includes the optional handle parameter
report its value as the value of the location parameter.
Locking WFS
InvalidLockId The value of the lockId parameter on
a Transaction operation is invalid because it was not generated by the
server. The locator parameter shall
contain the value of the invalid lockId.
Locking WFS
InvalidValue A Transaction see Clause 15 has
attempted to insert or change the value of a data component in a way
that violates the schema of the feature.
The locator parameter shall contain the name of the
property being incorrectly modified.
Transactional WFS
LockHasExpired The specified lock identifier on a
Transaction or LockFeature operation has expired and is no
longer valid. The locator parameter shall
contain the value of the expired lock identifier.
Locking WFS
OperationParsingFailed The request is badly formed and
failed to be parsed by the server. The locator parameter shall
contain the value of the handle parameter if one is
available. Otherwise the locator parameter shall
contain the name of the badly formed operation.
All see Table 1
OperationProcessingFailed An error was encountered while
processing the operation. The locator parameter shall
contain the value of the handle parameter if one is
available. Otherwise the locator parameter shall
contain the name of the operation that failed.
All see Table 1
ResponseCacheExpired The response cache used to support
paging has expired and the results are no longer available.
If the operation includes the optional handle parameter,
report its value as the value of the locator parameter.
Response paging
Servers shall implement the generic exception codes in Table 25 of OGC 06-121r3:2009 for all conformance classes defined in this International Standard.
Multiple exceptions may be reported in a single exception report so server implementations should endeavour to report as many exceptions as necessary to clearly describe a problem.
Copyright © 2010 Open Geospatial Consortium
17
EXAMPLE If parsing an operation fails because the value of a parameter is invalid, the server should report an
OperationParsingFailed exception and an InvalidParameterValue exception.
Annex B contains examples of exception reports.
7.6 Common request parameters 7.6.1 Introduction
Request parameters common to all or several operations defined in this International Standard are described in 7.6.2 to 7.6.6.
7.6.2 Base request type 7.6.2.1
Request Semantics
The base request type see Figure 3 is an abstract type from which all WFS operations, except the GetCapabilities operation, are sub typed.
BaseRequest + service : CharacterString = WFS {frozen}
+ version : CharacterString = 2.0.0 {frozen} + handle [0..1] : Charact erSt ring
Figure 3 — BaseRequest 7.6.2.2
XML encoding
The following XML Schema fragment specifies the XML encoding of the type BaseRequest:
xsd:complexType name=BaseRequestType abstract=true xsd:attribute name=service type=xsd:string
use=required fixed=WFS xsd:attribute name=version type=xsd:string
use=required fixed=2.0.0 xsd:attribute name=handle type=xsd:string
xsd:complexType