Changes between Version 66 and Version 67 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
- Timestamp:
- Nov 2, 2010, 5:09:36 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
v66 v67 623 623 ===== storeExecuteResponse parameter and !GetStatus Service ===== 624 624 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 provide nis the {{{GetStatus}}} one, it is able to give you information about the current status value from a service running in background mode.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 provider is the {{{GetStatus}}} one, it is able to give you information about the current status value from a service running in background mode. 626 626 627 627 You 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. … … 646 646 Here 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]. 647 647 648 To finish your deplo iement, you'll have now to copy the xsl file in the defined {{{dataPath}}} directory. You can use the following command :648 To finish your deployment, you'll have now to copy the xsl file in the defined {{{dataPath}}} directory. You can use the following command : 649 649 650 650 … … 662 662 [[Image(Practical introduction to ZOO - 9.png,width=550px,nolink)]] 663 663 664 If you poll the {{{statusLocation}}} url provide nin 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.664 If 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. 665 665 666 666 [[Image(Practical introduction to ZOO - 10.png,width=550px,nolink)]] 667 667 668 This won't be used during this workshop but can be useful for really time consuming Service.668 This won't be used during this workshop but can be useful for really time consuming services. 669 669 === Creating Services for other functions (!ConvexHull and Centroid) === 670 670