KVP encoding ListStoredQueries operation .1 Request Semantics

84 Copyright © 2010 Open Geospatial Consortium Table 20 — Keywords for ListStoredQueries KVP-encoding URL Component Description Common Keywords REQUEST= ListStoredQueries See Table 7. Only keywords for all operation or the ListStoredQueries operation

14.3.4 Response

Figure 24 describes the response to a ListStoredQueries operation. ListStoredQueriesResponse + query : StoredQueryListItem StoredQueryListItem + title [0..] : LocalisedCharacterString + returnFeatureType [1..] : ScopedName + id : URI Figure 24 — ListStoredQueriesResponse The following XML Schema fragment defines the response to a ListStoredQueries operation: xsd:element name=ListStoredQueriesResponse type=wfs:ListStoredQueriesResponseType xsd:complexType name=ListStoredQueriesResponseType xsd:sequence xsd:element name=StoredQuery type=wfs:StoredQueryListItemType minOccurs=0 maxOccurs=unbounded xsd:sequence xsd:complexType xsd:complexType name=StoredQueryListItemType xsd:sequence xsd:element ref=wfs:Title minOccurs=0 maxOccurs=unbounded xsd:element name=ReturnFeatureType type=xsd:QName maxOccurs=unbounded xsd:sequence xsd:attribute name=id type=xsd:anyURI use=required xsd:complexType The response to a ListStoredQueries operation is the root element wfs:ListStoredQueriesResponse element containing one or more wfs:StoredQuery elements each describing a stored query that a server offers. The components wfs:Title, wfs:ReturnFeatureType and the attribute id are described in 14.2.

14.3.5 Exceptions

In the event that a server encounters an error parsing a ListStoredQueries operation, it shall raise an OperationParsingFailed exception as described in 7.5. In the event that a server encounters an error processing a ListStoredQueries operation, it shall raise an OperationProcessingFailed exception as described in 7.5. Copyright © 2010 Open Geospatial Consortium 85 14.4 DescribeStoredQueries operations

14.4.1 Request Semantics

The DescribeStoredQueries operation see Figure 25 provides detailed metadata about each stored query expression that a server offers. Desc ribeStoreQueries + storedQueryId [0..] : URI BaseRequest + service : CharacterString = WFS {frozen} + version : CharacterString = 2.0.0 {frozen} + handle [0..1] : Charact erSt ring Figure 25 — DescribeStoredQueries request 14.4.2 XML encoding The following XML Schema fragments defines the XML-encoding for the DescribeStoredQueries operation: xsd:element name=DescribeStoredQueries type=wfs:DescribeStoredQueriesType xsd:complexType name=DescribeStoredQueriesType xsd:complexContent xsd:extension base=wfs:BaseRequestType xsd:sequence xsd:element name=StoredQueryId type=xsd:anyURI minOccurs=0 maxOccurs=unbounded xsd:sequence xsd:extension xsd:complexContent xsd:complexType The wfs:DescribeStoredQueries element contains zero or more wfs:StoredQueryId elements that enumerate the identifiers of the stored queries to describe. If no wfs:StoredQueryId elements are specified then all stored queries offered by a server shall be described.

14.4.3 KVP encoding

Table 21 defines the KVP-encoding for the DescribeStoredQueries operation.