Net.Data supports the Web APIs in the following list, depending on
your operating system:
- GWAPI plug-in
- The Lotus Domino Go Webserver API plug-in
- ISAPI plug-in
- Microsoft Internet Server API plug-in
- NSAPI plug-in
- Netscape Server API plug-in
See the operating system reference appendix in Net.Data
Reference to determine which Web server APIs are supported for your
operating system. See Configuring Net.Data for Use with the Web Server APIs to learn how to configure Net.Data and the Web server
for use with APIs.
Requirements:
- If running Net.Data in GWAPI, ISAPI or NSAPI mode, restart your Web
server so that the Web server can reload Net.Data and run it as a
process.
- If you make changes to the initialization file after the Web server
invokes Net.Data in API mode, you must restart the Web server.
Any changes to the Net.Data initialization file
(db2www.ini) have no effect. In API mode,
Net.Data reads the initialization file only once to reduce the
performance overhead.
- When running in API mode, the Oracle and ODBC language environments
require Live Connection.
To invoke the Web server APIs:
- For GWAPI:
-
Syntax:
http://server/CGI-BIN/db2www/macro_name/block[?name=val&...]
Parameters:
- server
- The name of the server.
- macro_name
- The relative path name of your macro under the directory specified by
MACRO_PATH.
- block
- The name of the HTML or XML block in the macro to be processed.
- ?name=val&...
- Specifies one or more optional parameters passed to
Net.Data.
Example:
http://myserver/CGI-BIN/db2www/mymacro.d2w/report
- For ISAPI:
-
Syntax:
http://server/server_HTML_root_directory/dll_name/
macro_name/
block[?name=val&...]
Parameters:
- server_name
- The name of the server.
- server_HTML_root_directory
- The Web server HTML root directory name.
- dll_name
- Net.Data's ISAPI .dll file name,
dtwisapi.dll.
- macro_name
- The relative path name of your macro under the directory specified by
MACRO_PATH.
- block
- The name of the HTML or XML block in the macro to be processed.
- ?name=val&...
- Specifies one or more optional parameters passed to
Net.Data.
Example:
http://myserver/scripts/dtwisapi.dll/mymacro.d2w/report
- For NSAPI:
-
Syntax:
http://server/macro_name/block[?name=val&...]
Parameters:
- server
- The name of the server.
- macro_name
- The relative path name of your macro under the directory specified by
MACRO_PATH. The extension of the macro, for example,
.d2w, must be defined in the Web server configuration
file. See Configuring Net.Data for Use with the Web Server APIs for more information.
- block
- The name of the HTML or XML block in the macro to be processed.
- ?name=val&...
- Specifies one or more optional parameters passed to
Net.Data.
Example:
http://myserver/mymacro.d2w/report
[ Top of Page | Previous Page | Next Page | Index ]