Complete these instructions to create a Web Service Resource based on a cataloged subroutine.
See Create a web service for more information.
These instructions apply only to Web Services created with the REST Service Type option. 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 Select a Web Service Resource Type dialog box opens.
The Select the Cataloged Subroutine dialog box opens.
The Arguments table is populated with the arguments contained in the specified subroutine, including the argument #, Name, Usage, Binding Mode, and Data Type.
The default Binding Mode is always set to simple and the default Data Type is always set to string.
This displays the Construct the Cataloged Subroutine dialog box with all of the columns populated. The Resource Name and Subroutine text boxes are automatically populated, and the default Data Format will be JSON, but you can change these parameters after post resource creation if you prefer.
The Define Argument dialog box opens.
For information on data typing, see D3 processing code mapping to XML datatypes.
The Web Service Resource is saved and the resource name displays in the MV Web Service Explorer.
If the dynamic-array Binding Mode was selected for any of the defined arguments in the subroutine, the dynamic arrays are displayed in the MV Web Service Explorer below the new Web Service Resource. For example: