Creating a Reality Web Service
You create a Reality web service as follows:
On each database that will expose DataBasic subroutines, use
SSM to create a
user that will be used for web services connections. Set up this user as
follows:
- Use SSM Define User Profiles to allow operation in server mode (set
option
14 to S or *).
- Use SSM Define User Profiles to specify an appropriate security profile when logged in via the
web service server
(WEBSRVR). A default security profile called DEFAULT.WEBSERVICE is
provided for this purpose, or you can create your own alternate profile. See
Setting
up Security for Client Access for more details.
- Each account that contains web service subroutines must be enabled for web
services. Log on to the SYSMAN account and enter SETUP-ACCOUNT. Select the
accounts to be enabled for web services and select the WEBSERVICE feature.
- Enable each subroutine that will be exposed by creating an item with the
same name in the account's WEBSERVICES file. The item should have a single
attribute containing the letter V.
- Use the Web
Services Management Console to create a Reality Connector for each account
containing web service subroutines. Give the connector a unique name and
specify the database, the Reality user you created in step 1 and the account,
together with the necessary passwords. Ensure that the connector is enabled.
- Use the Web
Services Management Console to create a web service and add the required
subroutines. For each subroutine, you must first specify the connector
(created in step 4) and then select the required subroutine. Ensure that the
service is enabled. By using different connectors, your web service can
include subroutines from different databases and accounts.