Last modified: Mon, 04/03/2017 - 17:29
A minimalist version of the operationsV7.xml file used by the Product Server. This file describes product server operations and associates them with actions by the backend services.
<!--
- Minimalist version of operationsV7.xml to provide a starting point for
- those developing their own operations.
-
- NOTE: If the LAS V6 user interface is going to be used in conjunction
- with LPS then all operation ID's must begin with a Capital letter.
-
- Each operation identifies two files which are used in making the product
- - 'output_template' is used by product server to assemble output into an HTML page
- - 'service_action' is used by the backend service to assemble commands to be
- issued to the service
-
- The operation ID will be referenced in the incoming LASRequest as
-
- <link match="/lasdata/operations/operation[@ID='new_operation_ID']"/>
-->
<operations>
<!--
- The 'Plot_2D' operation uses the 'ferret' service to generate
- an image, a map scale file, a reference map and some debug output.
- Ferret runs the commands defined in
-
- JavaSource/resources/ferret/scripts/Plot_2D.jnl
-
- LPS then assembles the ferret output into an HTML page based on
-
- WebContent/productserver/templates/output.vm
-->
<operation name="2D Plot" ID="Plot_2D" output_template="output" service_action="Plot_2D">
<service>ferret</service>
<response ID="PlotResp">
<result type="image" ID="plot_image" streamable="true" mime_type="image/png"/>
<result type="ps" ID="plot_postscript" streamable="true" mime_type="application/postscript"/>
<result type="image" ID="ref_map"/>
<result type="map_scale" ID="map_scale"/>
<result type="debug" ID="debug"/>
<result type="cancel" ID="cancel"/>
</response>
</operation>
<!--
- The 'DBExtract' operation uses the 'database' service to run queries
- defined in
-
- JavaSource/resources/database/templates/sql.vm
-
- the Product Server then assembles the ferret output into an HTML page based on
-
- WebContent/productserver/templates/netcdf.vm
-->
<operation name="Database Extraction" ID="DBExtract" output_template="netcdf" service_action="sql">
<service>database</service>
<response ID="DBExtractResponse">
<result type="netCDF" ID="netcdf"/>
<result type="debug" ID="db_debug"/>
<result type="cancel" ID="cancel"/>
</response>
</operation>
<!--
- The following example shows how to construct a 2-step operation
-->
<operation name="Extract and Plot" ID="Insitu_extract_location_value_plot" output_template="output">
<operation name="Database Extraction" ID="DBExtract" output_template="ascii" service_action="sql">
<response ID="DBExtractResponse">
<result type="debug" ID="db_debug"/>
<result type="netCDF" ID="netcdf"/>
</response>
<service>database</service>
</operation>
<operation chained="true" name="In-situ location and value plot" ID="Plot_insitu_XY_locations_and_values" output_template="output" service_action="Plot_insitu_XY_locations_and_values">
<args>
<arg chained="true" type="variable" index="1" operation="DBExtract" result="netcdf"/>
<arg type="region" index="1" ID="in-situ-Region"/>
</args>
<response ID="PlotResp" type="HTML" index="1">
<result type="image" ID="plot_image" streamable="true" mime_type="image/png"/>
<result type="ps" ID="plot_postscript" streamable="true" mime_type="application/postscript"/>
<result type="image" ID="ref_map"/>
<result type="debug" ID="debug"/>
</response>
<service>ferret</service>
</operation>
</operation>
</operations>