[Zoo-discuss] ZOO-client and ZOO-API : concepts and usage
rakesh prithiviraj
rakeshuk at outlook.com
Fri Jun 10 01:28:40 PDT 2016
Hi,
I really appreciate if someone could help me in understanding the concepts behind ZOO-client and ZOO-API and the relation between them. Thanks for your time.
Objective: Create a web front end that allows user to select a WPS processor and execute it.
I had a look at ZOO-client (zoo.js, wps-payload.js, utils.js) and ZOO-api (ZOO-api.js, ZOO-proj4js.js) description and my understanding is that ZOO-client can create WPS requests (GetCapabilities, DescribeProcess, ExecuteRequest, DismissRequest) and can send it directly to ZOO-Kernel. ZOO-client uses mustache templates for this. We do not need ZOO-API at all for this sequence. Is it correct? Also ZOO-client can also dynamically build the form based on DescribeProcess response.
Am i right to say that ZOO-api is server side equivalent of ZOO-client. This means ZOO-api can also generate WPS requests and can send it to ZOO-kernel. This means we can write simple web front that sends all the information (processor identifier, inputs, outputs etc.) that is required to create WPS requests to ZOO-API which then constructs the WPS requests and sends it to ZOO-Kernel.
In my use case, I do not want the web front end to talk directly to ZOO-kernel but it should send information (as JSON or XML) to some backend which then logs this user activity in database, performs few checks with the user account and then creates and submits the WPS requests to ZOO-Kernel. This same backend receives the WPS response from ZOO-Kernel and knows how to handle it. The backend again updates the database (user account, history etc.) and then sends the information to web front end. So the backend is the client for ZOO-Kernel and not the web front end. I am hoping that ZOO-API is the one that I need to use as backend.
If my understanding of ZOO-api is not correct, then I need to develop a backend in Java/PHP that should act as middle layer between web front end and ZOO-Kernel.
Also I had a look at this example http://zoo-project.org/examples/otb-example.html. It looks very promising. Is the source code of this exampe available as open source?
Thanks,Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20160610/8507c493/attachment.html>
More information about the Zoo-discuss
mailing list