| 74 | == Testing the ZOO installation with GetCapabilities == |
| 75 | |
| 76 | You can now simply query ZOO Kernel using the following request from your Internet browser: |
| 77 | |
| 78 | [http://localhost/cgi-bin/zoo_loader.cgi?Request=GetCapabilities&Service=WPS] |
| 79 | |
| 80 | You should then get a valid Capabilities XML document, as the following : |
| 81 | |
| 82 | Please note that no Process node is returned in the ProcessOfferings section, as no ZOO Service is available yet. You can also proceed to a GetCapabilities request from the command line, using the following command: |
| 83 | |
| 84 | {{{ |
| 85 | #!sh |
| 86 | cd /usr/lib/cgi-bin |
| 87 | ./zoo_loader.cgi “request=GetCapabilities&service=WPS” |
| 88 | }}} |
| 89 | |
| 90 | The same result as in your browser will be returned, as shown in the following screenshot: |
| 91 | |
| 92 | == Preparing your ZOO ServiceProvider directory == |
| 93 | |
| 94 | In order to simplify the task, we will first comment the directory structure which should be used when creating a new Services Provider : |
| 95 | |
| 96 | * The main Services Provider directory including : |
| 97 | * A cgi-env directory which will contain all the zcfg metadata files and the service shared |
| 98 | object (C Shared Library or Python module) |
| 99 | * The Makefile and the *c files needed to compile your Services Provider. |
| 100 | |
| 101 | Please create a ws_sp main Services Provider directory in the existing zoo-services one located in /home/user/zoows/sources/, respecting the tree above . |
| 102 | |
| 103 | {{{ |
| 104 | #!sh |
| 105 | mkdir -p /home/user/zoows/sources/zoo-services/ws_sp/cgi-env |
| 106 | }}} |
| 107 | |
| 108 | The Makefile and the code of the C and Python Service Shared Object will be detailed in the next sections. |
| 109 | |