This is an AQL web service that selects items from the
MVDEMO CUSTOMERS for a given state.
Procedure
- Right-click the mvs Web Service
from the MV Web Service Explorer and select
the Create Web Service Operation option.
The Create a Web Service Operation dialog box opens.
-
Select localserver from the Database
Connection drop-down, and then click Connect to
display the list of accounts.
-
Select the MVDEMO account from the
Account drop-down, and then click
Next.
The Select a Web Service Operation Type dialog box opens.
-
Select the AQL Statement option, and then click
Next.
The Construct the AQL Statement dialog box opens.
- Type list-customers in the Operation Name text box and select the CUSTOMERS file from the File Name drop-down list.
- Select the Selection Criteria tab.
You will see the Selection Criteria tab.
-
Click Add to add your selection criteria.
- Click the top-most cell in the Attribute Name column and select the STATE ADI.
- Click the top-most cell in the Relational Operator column and select the = (equals) operator.
-
Click the top-most cell in the Value column and type
@STATE.
This will generate a variable in the Web Service Operation and its value will be
supplied by the client.
- Select the Sort Criteria tab.
You will see the Sort Criteria tab.
-
Click Add to add your sort criteria.
- Click the top-most cell in the Attribute Name column and select the ORGANIZATIONNAME ADI.
- Click the top-most cell in the Sort Order column and select the Ascending order.
- Click Finish to create the Web
Service Operation.