With the Submit request a task with the parameters is send to SPS service.
The Submit-Request must be made in the form of a POST request.
Parameters
Mandatory parameters for this request:
- service - set to SPS
- request - set to Submit
- version - for this SPS-version set to “1.0.0″
- notificationTarget -
- Sensor param - The SensorID and the new parameters for the task
- feasibilityID - The unique ID that has been returned by the SPS as a response of a GetFeasibility-Request(GetFeasibilityRequestResponse)
- timeframe - the time for the maximum period of validity for this request . After this date, this request is obsolete.
ul>
For the Submit Request EITHER the parameters Sensor param OR feasibilityID must be specified. If a GetFeasibility-Request had been send, and the service gave a go for this task, the feasibilityID should be specified, because the service might have reserved the resources for this task and thus a Submit-Request with sensor parameters would be rejected.
Optional parameters for this request:
Example of a Submit-Request with feasibilityID:
<?xml version="1.0" encoding="UTF-8"?>
<Submit xmlns="http://www.opengis.net/sps" xmlns:gml="http://www.opengis.net/gml" xmlns:swe="http://www.opengis.net/swe" service="SPS" version="1.0.0">
<notificationTarget>
<notificationID>1234</notificationID>
<notificationURL>http://www.example.org/WNS/wns</notificationURL>
</notificationTarget>
<feasibilityID>3</feasibilityID>
<timeFrame>
<gml:TimeInstant>
<gml:timePosition>2014-2-10T18:00:00</gml:timePosition>
</gml:TimeInstant>
</timeFrame>
</Submit>Example of a Submit-Request with the sensor parameters:
<?xml version="1.0" encoding="UTF-8"?>
<Submit xmlns="http://www.opengis.net/sps" xmlns:gml="http://www.opengis.net/gml" xmlns:swe="http://www.opengis.net/swe" service="SPS" version="1.0.0">
<notificationTarget>
<notificationID>1234</notificationID>
<notificationURL>http://www.example.org/WNS/wns</notificationURL>
</notificationTarget>
<sensorParam>
<sensorID>urn:x-ogc:object:sensor:SENSORID</sensorID>
<parameters>
<InputParameter parameterID="PARAMETER-ID1">
<value>
<swe:Quantity>
<swe:value>70</swe:value>
</swe:Quantity>
</value>
</InputParameter>
<InputParameter parameterID="PARAMETER-ID1">
<value>
<swe:Quantity>
<swe:value>50</swe:value>
</swe:Quantity>
</value>
</InputParameter>
</parameters>
</sensorParam>
<timeFrame>
<gml:TimeInstant>
<gml:timePosition>2014-2-10T18:00:00</gml:timePosition>
</gml:TimeInstant>
</timeFrame>
</Submit>The service responds to this query with an SubmitRequestResponse
Share:
Add comment