Final Response is Provided Before Latest Response Time

Copyright © 2011 Open Geospatial Consortium 163 Listing 36 - GetStatus response indicating pending update request was accepted sps:GetStatusResponse xmlns:sps = http:www.opengis.netsps2.0 xmlns:swe = http:www.opengis.netswe2.0 xmlns:swes = http:www.opengis.netswes2.0 xmlns:xsi = http:www.w3.org2001XMLSchema-instance sps:status sps:StatusReport sps:task http:www.ogc.orgprocedurecamera1tasks6updates1 sps:task sps:procedure http:www.ogc.orgprocedurecamera1 sps:procedure sps:requestStatus Accepted sps:requestStatus sps:updateTime 2010-08-20T12:40:50+02:00 sps:updateTime sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator = , blockSeparator = sps:encoding sps:values Y,relativePositioning,Y,-10,N,N sps:values sps:ParameterData sps:taskingParameters sps:StatusReport sps:status sps:GetStatusResponse

9.6.5.9 Task Completion

2010-08-20T14:35:00+02:00 – The client sends a GetTask request to get a complete description of the task the service performed for him. The request is essentially the same as the one shown in Listing 26. 2010-08-20T14:35:01+02:00 – The service sends a response that includes the full state history of the task as the service supports state logging. Note: this example assumes that the task was submitted, not reserved first; intermediate data publication is shown as well a task update. Listing 37 - GetTask response for completed task sps:GetTaskResponse xmlns:sps=http:www.opengis.netsps2.0 xmlns:swe=http:www.opengis.netswe2.0 xmlns:swes=http:www.opengis.netswes2.0 xmlns:xsi=http:www.w3.org2001XMLSchema-instance sps:task sps:Task swes:identifierhttp:www.ogc.orgprocedurecamera1tasks6swes:identifier sps:status sps:StatusReport sps:taskhttp:www.ogc.orgprocedurecamera1tasks6sps:task sps:eventTaskSubmittedsps:event sps:percentCompletion0sps:percentCompletion sps:procedurehttp:www.ogc.orgprocedurecamera1sps:procedure sps:requestStatusAcceptedsps:requestStatus sps:taskStatusInExecutionsps:taskStatus sps:updateTime2010-08-20T11:12:04+02:00sps:updateTime sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator=, blockSeparator= sps:encoding sps:values2010-08-20T12:37:00+02:00,2010-08- 20T14:30:00+02:00,Y,pointToLookAt,51.902112,8.192728,0,Y,3.5sps:values sps:ParameterData sps:taskingParameters sps:StatusReport sps:status sps:status sps:StatusReport 164 Copyright © 2011 Open Geospatial Consortium sps:taskhttp:www.ogc.orgprocedurecamera1tasks6sps:task sps:eventDataPublishedsps:event sps:procedurehttp:www.ogc.orgprocedurecamera1sps:procedure sps:requestStatusAcceptedsps:requestStatus sps:taskStatusInExecutionsps:taskStatus sps:updateTime2010-08-20T12:37:00.001+02:00sps:updateTime sps:StatusReport sps:status sps:status sps:StatusReport sps:taskhttp:www.ogc.orgprocedurecamera1tasks6sps:task sps:eventTaskUpdatedsps:event sps:procedurehttp:www.ogc.orgprocedurecamera1sps:procedure sps:requestStatusAcceptedsps:requestStatus sps:taskStatusInExecutionsps:taskStatus sps:updateTime2010-08-20T12:40:50+02:00sps:updateTime sps:taskingParameters sps:ParameterData sps:encoding swe:TextEncoding tokenSeparator=, blockSeparator= sps:encoding sps:valuesY,relativePositioning,Y,-10,N,Nsps:values sps:ParameterData sps:taskingParameters sps:StatusReport sps:status sps:status sps:StatusReport sps:taskhttp:www.ogc.orgprocedurecamera1tasks6sps:task sps:eventTaskCompletedsps:event sps:percentCompletion100sps:percentCompletion sps:procedurehttp:www.ogc.orgprocedurecamera1sps:procedure sps:requestStatusAcceptedsps:requestStatus sps:taskStatusCompletedsps:taskStatus sps:updateTime2010-08-20T14:30:00+02:00sps:updateTime sps:StatusReport sps:status sps:Task sps:task sps:GetTaskResponse A GetStatus request with since parameter - supported by the service in this scenario - can yield a similar result but clients can also retrieve only those parts of the state log for a task that they do not already know. Let us assume that the client already performed a GetStatus request at 2010-08-20T12:37:05+02:00. 2010-08-20T14:00:00.00+02:00 – The client sends a GetStatus request with since parameter to the service, set to the value 2010-08-20T12:37:05+02:00. Listing 38 - GetStatus request example with since parameter sps:GetStatus service = SPS version = 2.0.0 xmlns:sps = http:www.opengis.netsps2.0 xmlns:swe = http:www.opengis.netswe2.0 xmlns:xsi = http:www.w3.org2001XMLSchema- instance sps:task http:www.ogc.orgprocedurecamera1tasks6 sps:task sps:since 2010-08-20T12:37:05+02:00 sps:since sps:GetStatus 2010-08-20T14:00:00.01+02:00 – The service sends a response providing information about the last two state transitions only.