Exceptions Examples OpenGIS® SWE Service Model Implementation Standard

58 Copyright © 2011 Open Geospatial Consortium. The UpdateSensorDescriptionResponse data type derives from the ExtensibleResponse data type see clause 9.2.2 and thus inherits all the properties contained in that data type. UpdateSensorDescriptionResponse does not restrict the content model of ExtensibleResponse. Requirement http:www.opengis.netspecSWES2.0reqUpdateSensorDescriptionResponseproperties REQ 46. UpdateSensorDescriptionResponse shall contain the properties defined for ExtensibleResponse. In addition, it shall include the properties according to Table 29. Table 29 — Property in the UpdateSensorDescriptionResponse data type Name Definition Data type and values Multiplicity and use updatedPro cedure Pointer to the proceduresensor of which the sensor description was updated. OM_Process a see ISODIS 19156 value shall be the one provided in the request One mandatory a Note: the primary use of this property is to provide a pointeridentifier – see clause 16.3.1 for further details

12.3 Exceptions

Clause 15 defines the exception codes that apply to this operation. In addition: Requirement http:www.opengis.netspecSWES2.0reqUpdateSensorDescriptionexceptionvalidTimeNotSupported REQ 47. If an UpdateSensorDescription request contains a SensorDescription with validTime property but the server does not support this option i.e. it only supports update of the most recent sensor description, an exception with code OptionNotSupported and locator value validTime shall be thrown. Copyright © 2011 Open Geospatial Consortium. 59 Requirement http:www.opengis.netspecSWES2.0reqUpdateSensorDescriptionexceptionunknownProcedureDescriptionFormat REQ 48. If an UpdateSensorDescription request contains a procedureDescriptionFormat that is not contained in at least one of the offerings with the same value for the procedure identifier as the one given in the request, an exception with code InvalidParameterValue and locator value procedureDescriptionFormat shall be thrown.

12.4 Examples

The following two listings provide examples of an UpdateSensorDescription operation request and response encoded in XML according to the XML Schema defined in Annex B. Listing 3 – UpdateSensorDescription operation request example swes:UpdateSensorDescription service = SPS version = 2.0 xmlns:swes = http:www.opengis.netswes2.0 xmlns:sml = http:www.opengis.netsensorML1.0.1 xmlns:xsi = http:www.w3.org2001XMLSchema-instance swes:procedure http:my.orgsensors937239 swes:procedure swes:procedureDescriptionFormat http:www.opengis.netsensorML1.0.1 swes:procedureDescriptionFormat swes:description swes:SensorDescription swes:data sml:System -- ... -- sml:System swes:data swes:SensorDescription swes:description swes:UpdateSensorDescription Listing 4 - UpdateSensorDescription operation response example swes:UpdateSensorDescriptionResponse xmlns:swes = http:www.opengis.netswes2.0 xmlns:xsi = http:www.w3.org2001XMLSchema-instance swes:updatedProcedure http:my.orgsensors937239 swes:updatedPro cedure swes:UpdateSensorDescriptionResponse 60 Copyright © 2011 Open Geospatial Consortium. 13 InsertSensor

13.1 Introduction