Changes between Version 66 and Version 67 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices


Ignore:
Timestamp:
Nov 2, 2010, 5:09:36 AM (9 years ago)
Author:
venka
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices

    v66 v67  
    623623===== storeExecuteResponse parameter and !GetStatus Service =====
    624624
    625 If you go in your local {{{/home/user/zoows/sources/zoo-services/utils/status}}}, you'll find the code for a ServiceProvider which will provide the {{{GetStatus}}} service and the {{{longProcess}}} one. The last is a simple example to learn how to use the {{{status}}} variable from {{{lenv}}} section of the main configuration {{{maps}}} and the {{{updateStatus}}} function you have to call to take your status value into account. The main service providen is the {{{GetStatus}}} one, it is able to give you information about the current status value from a service running in background mode.
     625If you go in your local {{{/home/user/zoows/sources/zoo-services/utils/status}}}, you'll find the code for a ServiceProvider which will provide the {{{GetStatus}}} service and the {{{longProcess}}} one. The last is a simple example to learn how to use the {{{status}}} variable from {{{lenv}}} section of the main configuration {{{maps}}} and the {{{updateStatus}}} function you have to call to take your status value into account. The main service provider is the {{{GetStatus}}} one, it is able to give you information about the current status value from a service running in background mode.
    626626
    627627You have to know that the ZOO Kernel will detect the presence of the {{{GetStatus}}} service and if it is available it will then return the link the corresponding {{{Execute}}} request.
     
    646646Here you define the path where the service is able to find the xsl file, specified in the {{{dataPath}}} parameter. You also tell the ZOO Kernel that you want to use the rewriteUrl we defined in the [wiki:ZooWorkshop/FOSS4GJapan/UsingZooFromOSGeoLiveVM previous section].
    647647
    648 To finish your deploiement, you'll have now to copy the xsl file in the defined {{{dataPath}}} directory. You can use the following command :
     648To finish your deployment, you'll have now to copy the xsl file in the defined {{{dataPath}}} directory. You can use the following command :
    649649
    650650
     
    662662[[Image(Practical introduction to ZOO - 9.png,width=550px,nolink)]]
    663663
    664 If you poll the {{{statusLocation}}} url providen in the answer you'll then be able to view the evolution of the {{{percentCompleted}}} attribute value growing, like you can see in the following screenshot.
     664If you poll the {{{statusLocation}}} url provider in the answer you'll then be able to view the evolution of the {{{percentCompleted}}} attribute value growing, like you can see in the following screenshot.
    665665
    666666[[Image(Practical introduction to ZOO - 10.png,width=550px,nolink)]]
    667667
    668 This won't be used during this workshop but can be useful for really time consuming Service.
     668This won't be used during this workshop but can be useful for really time consuming services.
    669669=== Creating Services for other functions (!ConvexHull and Centroid) ===
    670670

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png