Complete these instructions to create a Web Service Operation based on an AQL statement.
See Create a web service for more information.
See Create a web service for more information.
The Create a Web Service Operation dialog box opens.
Parameters | Description | |
---|---|---|
Database Connection | Select the database connection that contains the
account and data you need to access for creating the operation. Tip: If you
need to define a new database connection for the operation you are creating, click the
New button to define the connection. When the connection
definition has been created, click the Connect button to connect
to the database. See Create MV server connections for a description of the required parameters for defining a
database connection.
|
|
Account | Select the account that contains the data you need to access for creating the operation. | |
Password | Password for the specified account. | |
Advanced Button | Opens the Connection Pool Settings dialog box. The following parameters can be specified: | |
Min Connections | Minimum number of connections to the D3 or mvBase server. The default is 0. | |
Max Connections | Maximum number of connections to the D3 or mvBase server. The default is 0. | |
Idle Timeout | Length of time (in seconds) before the connection is dropped due to inactivity. The default is 300 seconds. |
The Select a Web Service Operation Type dialog box opens:
The Construct the AQL Statement dialog box opens.
The Output Specification tab is populated with the columns contained in the specified file. Also included in the tab are the Substitute-ID, Type, Attribute, Substitute-Header , Conversion, Correlative, Justification, and Length specifications for each of the listed columns.
Also note that the actual AQL statement that you are in the process of constructing displays in the AQL Statement section of the screen (below the tabs section). The AQL statement displayed changes dynamically to match any changes you make to the Output Specifications, Selection Criteria and Sort Criteria.
After clicking Add, specify your criteria by clicking in the applicable table cells beneath the Attribute Name, Relational Operator, and Value column headings. If multiple selection criteria clauses are added, a Logical Operator must also be specified.
The following example illustrates a sample selection criteria specification.
After clicking Add, specify your criteria by clicking in the applicable table cells beneath the Attribute Name and Sort Order column headings. Multiple sort criteria clauses can be added.
The following example illustrates a sample sort criteria specification.
The Web Service Operation is saved and the operation name displays in the MV Web Service Explorer. To test the operation, see Test a web service.
To edit the operation, see Edit a web service operation or resource.