Declaring the returned feature types Implementation language IsPrivate parameter

Copyright © 2010 Open Geospatial Consortium 83 This characteristic is set when the stored query is created and determines whether the implementation text of component query expression is presented in a response to a DescribeStoredQueries operation see 14.4. If the value of the IsPrivate parameter is true, the server shall not present the implementation text of a component query expression in response to a DescribeStoredQueries operation. If the value of the IsPrivate parameter is false, the server shall present the implementation text of a component query expression in response to DescribeStoredQueries operation.

14.2.2.6 id parameter

The id parameter shall be used to assign a unique identifier that can be use to repeatedly invoke a stored query. 14.3 ListStoredQueries operation 14.3.1 Request Semantics The ListStoredQueries operation see Figure 23 lists the stored queries available at a server. ListStoredQueries BaseRequest + service : CharacterString = W FS {frozen} + version : CharacterString = 2.0.0 {frozen} + handle [0..1] : CharacterString Figure 23 — ListStoredQueries request 14.3.2 XML encoding The following XML Schema fragment defines the XML-encoding for the ListStoredQueries operation: xsd:element name=ListStoredQueries type=wfs:ListStoredQueriesType xsd:complexType name=ListStoredQueriesType xsd:complexContent xsd:extension base=wfs:BaseRequestType xsd:complexContent xsd:complexType

14.3.3 KVP encoding

Table 20 defines the KVP-encoding for the ListStoredQueries operation: 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.