Permits a database server to act as a Web server.
CREATE SERVICE service-name-string TYPE service-type-string [ attributes ] [ AS statement ] service-type-string - (back to Syntax) { 'RAW ' | 'HTML ' | 'XML ' | 'SOAP ' | 'DISH ' } attributes - (back to Syntax) [ AUTHORIZATION { ON | OFF } ] [ SECURE { ON | OFF } ] [ USER { user-name | NULL } ] [ URL [ PATH/ ] { ON | OFF | ELEMENTS } ] [ USING { SOAP-prefix | NULL } ]
Run production systems with authorization turned on. Grant permission to use the service by adding users to a role.
All services that are run in production systems must define a statement. The statement can be NULL only if authorization is enabled.
CREATE SERVICE tables TYPE 'HTML' AUTHORIZATION OFF USER DBA AS SELECT * FROM SYS.ISYSTAB
After executing this statement, use any Web browser to open the URL http://localhost/tables.
The CREATE SERVICE statement causes the database server to act as a web server. A new entry is created in the SYSWEBSERVICE system table.
In a multiplex, execute CREATE SERVICE on both the coordinator and each secondary node that will act as a web server.