558 | | Finally, please note that we go back to the default {{{mimeType}}} to directly obtain the JSON string as we will use this kind of request to develop our client application in the next section of this workshop. |
| 558 | Please note that we go back to the default {{{mimeType}}} to directly obtain the JSON string as we will use this kind of request to develop our client application in the next section of this workshop. |
| 559 | |
| 560 | Now, you know how to ask ZOO Kernel to run service in background, ask for !RawDataOutput specifying mimeType or any specific format to be returned by the Kernel. When you ask for !ResponseDocument, you can also specify to the ZOO Kernel that you want the result to be stored on the server side. |
| 561 | |
| 562 | To do such a thing, you have to set the attribute {{{asReference}}} as {{{true}}} and then the resulting ExecuteResponse will contain a {{{Reference}}} node including the {{{href}}} attribute to let you access the produced file. To be able to handle this, you have to add the {{{extension}}} parameter in your {{{DataOutputs}}} node in the corresponding ZCFG file. |
| 563 | |
| 564 | Here is a sample url which provide such a result : |
| 565 | |
| 566 | [http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=Boundary&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fmapserv%3Fmap%3D%2Fvar%2Fwww%2Fwfs.map%26SERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dregions%26SRS%3DEPSG%3A4326%26FeatureID%3Dregions.3192&ResponseDocument=Result@mimeType=application/json@asReference=true link] |
| 567 | |
| 568 | {{{ |
| 569 | http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=Boundary&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Flocalhost%2Fcgi-bin%2Fmapserv%3Fmap%3D%2Fvar%2Fwww%2Fwfs.map%26SERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dregions%26SRS%3DEPSG%3A4326%26FeatureID%3Dregions.3192&ResponseDocument=Result@mimeType=application/json@asReference=true |
| 570 | }}} |
| 571 | |
| 572 | You can see bellow what kind of result can be expected : |