| 1 | .. _client-what: |
|---|
| 2 | |
|---|
| 3 | What is ZOO-Client ? |
|---|
| 4 | ========================= |
|---|
| 5 | |
|---|
| 6 | ZOO-Client is a client-side JavaScript API which provides simple methods |
|---|
| 7 | for interacting with `WPS |
|---|
| 8 | <http://www.opengeospatial.org/standards/wps/>`__ server from web |
|---|
| 9 | applications. It is helpful for sending requests to any WPS compliant |
|---|
| 10 | server (such as :ref:`kernel_index`) and to parse the output responses |
|---|
| 11 | using simple JavaScript. |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | JavaScript |
|---|
| 15 | ------------------------------- |
|---|
| 16 | |
|---|
| 17 | ZOO-Client relies on modern JavaScript libraries and can be seamlessly |
|---|
| 18 | integrated in new or existing web platforms or |
|---|
| 19 | applications. ZOO-Client works by expanding the tags available in WPS |
|---|
| 20 | specific templates using values provided by a JavaScript hash or |
|---|
| 21 | object. It allows to build valid WPS requests and to send them to a |
|---|
| 22 | WPS server. It also provides functions to easily parse and reuse the |
|---|
| 23 | output XML responses. Read the :ref:`next section <client-howto>` to |
|---|
| 24 | get started. |
|---|
| 25 | |
|---|
| 26 | Please, refer to the `ZOO-Client API documentation |
|---|
| 27 | <http://www.zoo-project.org/jsDoc/index.html>`__ for accessing the |
|---|
| 28 | up-to-date documentation. |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | Templates |
|---|
| 32 | ------------------------------- |
|---|
| 33 | |
|---|
| 34 | ZOO-Client uses logic-less `Mustache <http://mustache.github.io/>`__ |
|---|
| 35 | templates for creating well-formed WPS requests. Please, refer to the |
|---|
| 36 | `ZOO-Client API documentation |
|---|
| 37 | <http://www.zoo-project.org/jsDoc//module-wpsPayload.html>`__ for more |
|---|
| 38 | details about the functions using the templates. |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | GetCapabilities |
|---|
| 42 | .......................................................... |
|---|
| 43 | |
|---|
| 44 | *GetCapabilities* requests are created using the following template: |
|---|
| 45 | |
|---|
| 46 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_GetCapabilities.mustache |
|---|
| 47 | :code: xml |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | DescribeProcess |
|---|
| 52 | .......................................................... |
|---|
| 53 | |
|---|
| 54 | *DescribeProcess* requests are created using the following template: |
|---|
| 55 | |
|---|
| 56 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_DescribeProcess.mustache |
|---|
| 57 | :code: xml |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | Execute |
|---|
| 61 | .......................................................... |
|---|
| 62 | |
|---|
| 63 | *Execute* requests are created using a more complex template, as shown bellow: |
|---|
| 64 | |
|---|
| 65 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_Execute.mustache |
|---|
| 66 | :code: xml |
|---|
| 67 | |
|---|