Changes between Version 64 and Version 65 of ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
- Timestamp:
- Nov 2, 2010, 3:59:37 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWorkshop/FOSS4GJapan/CreatingOGRBasedWebServices
v64 v65 621 621 If everything went well, you should get the Boundary of the JSON geometry passed as argument, and so be sure that your Service support both GML and JSON as input data. Note that in the previous request, we added a {{{mimeType}}} attribute to the {{{ComplexData}}} node to specify that the input data is not in the default {{{text/xml}}} {{{mimeType}}} but passed as an {{{application/json}}} string directly. It is similar to add {{{@mimeType=application/json}}} as we discussed before. 622 622 623 ===== storeExecuteResponse parameter and GetStatus Service =====623 ===== storeExecuteResponse parameter and !GetStatus Service ===== 624 624 625 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. … … 660 660 You shall get the a XML document looking like the following : 661 661 662 [[Image( Capture d’écran 2010-11-02 à 03.15.44.png,width=550px,nolink)]]662 [[Image(Practical introduction to ZOO - 9.png,width=550px,nolink)]] 663 663 664 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. 665 665 666 [[Image(Practical introduction to ZOO - 10.png,width=550px,nolink)]] 667 668 This won't be used during this workshop but can be useful for really time consuming Service. 666 669 === Creating Services for other functions (!ConvexHull and Centroid) === 667 670