KVP-encoding XML-encoding Response Example

28 Copyright © 2014 Open Geospatial Consortium. The optional outputFormat parameter may be used to request the response in a specific format. The default value is applicationogc-as+xml see 8.3.5. Other output format values are allowed e.g. a JSON response to which this engineering report does not assign any meaning.

8.4.3 KVP-encoding

The following table defines the KVP-encoding for the GetAssociations operation. Table 4 – GetAssociations KVP encoding URL Component OMa Description REQUEST M Fixed value of GetAssociations SERVICE M Identifier for the service invoking the operation VERSION M Fixed value of 1.0.0 CONTENTS O A comma separated list of service-specific resource identifiers for which the known associations will be returned in the response. If the parameter is omitted then all known associations are returned in the response. OUTPUTFORMAT O The response format of the operation. The default values is applicationogc-as+xml. a O = Optional, M = Mandatory

8.4.4 XML-encoding

The following XML Schema fragment defines the XML-encoding for the GetAssociations operation. xsd:element name=GetAssociations type=as:GetAssociationsType xsd:complexType name=GetAssociationsType xsd:sequence xsd:element name=Content type=as:StringOrQName minOccurs=0 maxOccurs=unbounded xsd:sequence xsd:attribute name=service type=ows:ServiceType use=required xsd:attribute name=version type=xsd:string use=required fixed=1.0.0 xsd:attribute name=outputFormat type=xsd:string default=applicationas+xml xsd:complexType xsd:simpleType name=StringOrQName xsd:union memberTypes=xsd:string xsd:QName xsd:simpleType Copyright © 2014 Open Geospatial Consortium. 29

8.4.5 Response

The response to a GetAssociations operation, when the output format is the default value applicationogc-as+xml, shall be a set of associations encoded as an XML document that validates against the schema describe is clause 8.2.4.

8.4.6 Example

In response to the following request: ?xml version=1.0? as:GetAssociations service=WMS version=1.0.0 outputFormat=applicationogc-as+xml xmlns:as=http:www.opengis.netas1.0 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netas1.0 association.xsd as:GetAssociations an OGC web map service might generate the following response: ?xml version=1.0? Associations xmlns=http:www.opengis.netas1.0 xmlns:xlink=http:www.w3.org1999xlink xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netas1.0 ..owsGetAssociations.xsd version=1.0.0 Association rel=http:www.opengis.netdefassociationType0cascades Source type=http:www.opengis.netdefobjectTypeogc0wms xlink:href=https:onestop.somecorp.comsomecorpsrvr Target type=http:www.opengis.netdefobjectTypeogc0wms xlink:href=https:demo.somecorp.comsrvr Association Association rel=http:www.opengis.netdefassociationType0cascades Source type=http:www.opengis.netdefobjectTypeogc0wmslayer xlink:href=https:onestop.somecorp.comsrvr IdentifierDemo.Foundation.aerofacp_1mIdentifier Source Target type=http:www.opengis.netdefobjectTypeogc0wmslayer xlink:href=https:demo.somecorp.comsrvr IdentifierFoundation.aerofacp_1mIdentifier Target Association Association rel=http:www.opengis.netdefassociationType0tiledBy Source type=http:www.opengis.netdefobjectTypeogc0wmslayer xlink:href=https:onestop.somecorp.comsrvr 30 Copyright © 2014 Open Geospatial Consortium. IdentifierDemo.Foundation.aerofacp_1mIdentifier Source Target type=http:www.opengis.netdefobjectTypeogc0wmtslayer xlink:href=https:demo.somecorp.comsomecorpsrvr IdentifierFoundation.aerofacp_1mIdentifier Target Association Association rel=http:www.opengis.netdefassociationType0renders Source type=http:www.opengis.netdefobjectTypeogc0wmslayer xlink:href=https:onestop.somecorp.comsrvr IdentifierDemo.Foundation.aerofacp_1mIdentifier Source Target type=http:www.opengis.netdefobjectTypeogc0wfsfeatureType xlink:href=https:demo.somecorp.comsrvr?DATASTORE=Foundation Identifier namespace=http:www.somecorp.comnsaerofacp_1mIdentifier Target Association Association rel=http:www.opengis.netdefassociationType0renders Source type=http:www.opengis.netdefobjectTypeogc0wmslayer xlink:href=https:onestop.somecorp.comsrvr IdentifierDemo.Foundation.etopo2Identifier Source Target type=http:www.opengis.netdefobjectTypeogcwcscoverage xlink:href=https:demo.somecorp.comsrvr?DATASTORE=Foundation Identifieretopo2Identifier Target Association Associations 9 Catalogue extensions

9.1 Introduction