angle-left NASA WPS Layer

NASA WPS - Execute Operation

Request

This operation is a POST request. The request body represents an Execute request where the identifier represents a process identifier as found in the GetCapabilities response in Contents section.

Make a post request with the requested body corresponding to the inputs required (see describe process section) to the endpoint https://api.maap.xyz/api/dps/job to launch a process 

Example of body 

<wps:Execute xmlns:wps="http://www.opengis.net/wps/2.0" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/2.0 ../wps.xsd" service="WPS" version="2.0.0" response="document" mode="sync"><ows:Identifier>job-plot_test_ubuntu:master</ows:Identifier><wps:Input id="pass_number"><wps:Data><wps:LiteralValue> 3 </wps:LiteralValue></wps:Data> </wps:Input><wps:Input id="username"><wps:Data> <wps:LiteralValue>username@domain</wps:LiteralValue> </wps:Data></wps:Input> <wps:Output id="result" transmission="value"/></wps:Execute>

Response

The execute operation's response represents a StatusInfo object giving you information on the request status:

A job correctly sent to the server will return a ACCEPTED status info. A job encountering an issue will return a FAILED info Status.

Once the job is ACCEPTED you can retrieve the identifier in the execute response and try to execute a GetResult Request to get the process result.

Example of Response:

<wps:StatusInfo xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:schemaLocation="http://schemas.opengis.net/wps/2.0/wps.xsd" xmlns:wps="http://www.opengis.net/wps/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wps:JobID> 1c050cab-d87e-4325-ac98-6296214f298c</wps:JobID><wps:Status>Accepted</wps:Status></wps:StatusInfo>
45 Views
Average (0 Votes)