[659] | 1 | .. _client-what: |
---|
| 2 | |
---|
| 3 | What is ZOO-Client ? |
---|
| 4 | ========================= |
---|
| 5 | |
---|
| 6 | ZOO-Client is a client-side JavaScript API which provides simple methods |
---|
[754] | 7 | for interacting with `WPS |
---|
| 8 | <http://www.opengeospatial.org/standards/wps/>`__ server from web |
---|
[659] | 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 |
---|
[754] | 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. |
---|
[659] | 25 | |
---|
[754] | 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. |
---|
[659] | 29 | |
---|
[754] | 30 | |
---|
[659] | 31 | Templates |
---|
| 32 | ------------------------------- |
---|
| 33 | |
---|
| 34 | ZOO-Client uses logic-less `Mustache <http://mustache.github.io/>`__ |
---|
[754] | 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. |
---|
[659] | 39 | |
---|
| 40 | |
---|
| 41 | GetCapabilities |
---|
| 42 | .......................................................... |
---|
| 43 | |
---|
| 44 | *GetCapabilities* requests are created using the following template: |
---|
| 45 | |
---|
[754] | 46 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_GetCapabilities.mustache |
---|
| 47 | :code: xml |
---|
[659] | 48 | |
---|
| 49 | |
---|
[754] | 50 | |
---|
[659] | 51 | DescribeProcess |
---|
| 52 | .......................................................... |
---|
| 53 | |
---|
| 54 | *DescribeProcess* requests are created using the following template: |
---|
| 55 | |
---|
[754] | 56 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_DescribeProcess.mustache |
---|
| 57 | :code: xml |
---|
[659] | 58 | |
---|
| 59 | |
---|
| 60 | Execute |
---|
| 61 | .......................................................... |
---|
| 62 | |
---|
| 63 | *Execute* requests are created using a more complex template, as shown bellow: |
---|
| 64 | |
---|
[754] | 65 | .. include:: ../../zoo-project/zoo-client/lib/tpl/payload_Execute.mustache |
---|
| 66 | :code: xml |
---|
[659] | 67 | |
---|