Complete these instructions to create a Web Service Resource based on Data.
See Create a web service for more information.
See Create a web service for more information.
The Create a Web Service Resource dialog box opens.
Parameter | Description | |
---|---|---|
Database Connection | Select the database connection that contains the
account and data you need to access for creating the resource. Tip: If you
need to define a new database connection for the resource 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 resource. | |
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 Resource 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 example below illustrates a sample selection criteria specification.
The following example illustrates a sample sort criteria specification.
The Web Service Resource is saved and the resource name displays in the MV Web Service Explorer.
To test the resource, see Test a web service.
To edit the resource, see Edit a web service operation or resource.