-
Notifications
You must be signed in to change notification settings - Fork 5
Get Started
bbrauzzi edited this page Oct 8, 2021
·
1 revision
If the installation was successfull, the ADES should be ready to answer our request
Let's start with a simple OWS WPS GetCapabilities request to check the service is running properly.
curl -L "http://HOSTNAME:PORT/WORKSPACE_NAME/zoo/?service=WPS&version=1.0.0&request=GetCapabilities"
The WORKSPACE_NAME corresponds to the user's workspace where all its deployed applications will be stored. If the workspace does not exist, it will be created automatically when the call to the WPS endpoint will be made.
⚠️ HOSTNAME:PORT must be set to your deployment hostname and port
The returned reply should be similar to the following
<?xml version="1.0" encoding="UTF-8"?>
<wps:Capabilities xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.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/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd" service="WPS" version="1.0.0" xml:lang="en-US">
<ows:ServiceIdentification>
<ows:Title>Ellip-WPS</ows:Title>
<ows:Fees>None</ows:Fees>
<ows:AccessConstraints>none</ows:AccessConstraints>
</ows:ServiceIdentification>
<ows:ServiceProvider>
<ows:ProviderName>xxxx</ows:ProviderName>
<ows:ProviderSite xlink:href="https://www.xxxxx.com"/>
<ows:ServiceContact>
<ows:IndividualName>Operations Support team</ows:IndividualName>
<ows:PositionName>xxxx</ows:PositionName>
<ows:ContactInfo>
<ows:Phone>
<ows:Voice>+xxxxx</ows:Voice>
<ows:Facsimile>False</ows:Facsimile>
</ows:Phone>
<ows:Address>
<ows:DeliveryPoint>xxxxx</ows:DeliveryPoint>
<ows:City>xx</ows:City>
<ows:AdministrativeArea>False</ows:AdministrativeArea>
<ows:PostalCode>xxx</ows:PostalCode>
<ows:Country>IT</ows:Country>
<ows:ElectronicMailAddress>[email protected]</ows:ElectronicMailAddress>
</ows:Address>
</ows:ContactInfo>
</ows:ServiceContact>
</ows:ServiceProvider>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
<ows:Post xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="DescribeProcess">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
<ows:Post xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="Execute">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
<ows:Post xlink:href="http://localhost/zoo-bin/zoo_loader.cgi"/>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<wps:ProcessOfferings>
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>eoepcaadesundeployprocess</ows:Identifier>
<ows:Title>Eoepca Deploy Process</ows:Title>
<ows:Abstract>This method will undeploy an application encapsulated within a Docker container as a process accessible through the WPS interface.</ows:Abstract>
</wps:Process>
<wps:Process wps:processVersion="1">
<ows:Identifier>longProcess</ows:Identifier>
<ows:Title>Demo long process. </ows:Title>
<ows:Abstract>This service doesn't do anything except taking its time, it demonstrates how to use the updateStatus function from your ZOO Service. </ows:Abstract>
<ows:Metadata xlink:title="Demo GetStatus request"/>
</wps:Process>
<wps:Process wps:processVersion="1">
<ows:Identifier>GetStatus</ows:Identifier>
<ows:Title>Produce an updated ExecuteResponse document. </ows:Title>
<ows:Abstract>Create an ExecuteResponse document from a sid (Service ID), it will use the niternal ZOO Kernel mechanisms to access the current status from a running Service and update the percentCompleted from the original backup file used by the ZOO Kernel when running a Service in background. </ows:Abstract>
<ows:Metadata xlink:title="Demo GetStatus request"/>
</wps:Process>
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>eoepcaadesdeployprocess</ows:Identifier>
<ows:Title>Eoepca Deploy Process</ows:Title>
<ows:Abstract>This method will deploy an application encapsulated within a Docker container as a process accessible through the WPS interface.</ows:Abstract>
</wps:Process>
</wps:ProcessOfferings>
<wps:Languages>
<wps:Default>
<ows:Language>en-US</ows:Language>
</wps:Default>
<wps:Supported>
<ows:Language>en-US</ows:Language>
<ows:Language>en-GB</ows:Language>
</wps:Supported>
</wps:Languages>
</wps:Capabilities>
Let's do the same using the OGC API - Processes with a REST query
curl -s -L "http://HOSTNAME:PORT/WORKSPACE_NAME/wps3/processes" -H "accept: application/json"
and the output should be
{
"processes": [
{
"id": "eoepcaadesundeployprocess",
"title": "Eoepca Deploy Process",
"abstract": "This method will undeploy an application encapsulated within a Docker container as a process accessible through the WPS interface.",
"version": "1.0.0",
"jobControlOptions": [
"sync-execute",
"async-execute",
"dismiss"
],
"outputTransmission": [
"value",
"reference"
],
"links": [
{
"rel": "canonical",
"type": "application/json",
"title": "Process Description",
"href": "/watchjob/processes/eoepcaadesundeployprocess/"
}
]
},
{
"id": "longProcess",
"title": "Demo long process. ",
"abstract": "This service doesn't do anything except taking its time, it demonstrates how to use the updateStatus function from your ZOO Service. ",
"version": "1.0.0",
"jobControlOptions": [
"sync-execute",
"async-execute",
"dismiss"
],
"outputTransmission": [
"value",
"reference"
],
"links": [
{
"rel": "canonical",
"type": "application/json",
"title": "Process Description",
"href": "/watchjob/processes/longProcess/"
}
]
},
{
"id": "GetStatus",
"title": "Produce an updated ExecuteResponse document. ",
"abstract": "Create an ExecuteResponse document from a sid (Service ID), it will use the niternal ZOO Kernel mechanisms to access the current status from a running Service and update the percentCompleted from the original backup file used by the ZOO Kernel when running a Service in background. ",
"version": "1.0.0",
"jobControlOptions": [
"sync-execute",
"async-execute",
"dismiss"
],
"outputTransmission": [
"value",
"reference"
],
"links": [
{
"rel": "canonical",
"type": "application/json",
"title": "Process Description",
"href": "/watchjob/processes/GetStatus/"
}
]
},
{
"id": "eoepcaadesdeployprocess",
"title": "Eoepca Deploy Process",
"abstract": "This method will deploy an application encapsulated within a Docker container as a process accessible through the WPS interface.",
"version": "1.0.0",
"jobControlOptions": [
"sync-execute",
"async-execute",
"dismiss"
],
"outputTransmission": [
"value",
"reference"
],
"links": [
{
"rel": "canonical",
"type": "application/json",
"title": "Process Description",
"href": "/watchjob/processes/eoepcaadesdeployprocess/"
}
]
}
]
}
If the above HTTP calls are returning a proper result, we are good to move to Deploy an application