This section covers the following topics:
The Natural Web Server Extensions part is basically a program called from an HTTP server. The Natural Web Server Extensions program takes parameters, given by the HTTP server, repackages them and performs a broker RPC call to the requested Natural program using a standard parameter data area. Calls are transmitted by the EntireX Broker that is included in EntireX Communicator.
Three HTTP Server interfaces are supported:
Common Gateway Interface (CGI), for supported server and platforms,
Internet Server Application Programming Interface (ISAPI) only for Microsoft Internet Information Server on Windows.
Apache Module (mod) only for Apache Server.
Each Natural Web Server Extension consists of two files:
an executable and
These files can be renamed. The initialization file has the same name as the executable file, but with the extension .ini.
Copy the files to appropriate locations of the web server, or parameterize the web server so that it accesses the files directly.
RPC | DCOM | |
---|---|---|
CGI |
nww3cgi.exe |
nww3dcgi.exe |
ISAPI |
nww3isapi.dll |
nww3disapi.dll |
Apache 2.0.x (UNIX) |
nww3mod2.so |
nww3dmod2.so |
Apache 2.0.x (PC) |
nww3mod2.dll |
nww3dmod2.dll |
Parameters |
|
NWW_INOUT_LENGTH = amount of transferred data
|
Note:
On some HTTP servers executable files without the extension
.exe can be used.
Parameters sent by the HTTP server via the interface are given by means of specific variables or a transfer area. User data contained in a transfer area or the variable QUERY_STRING will be recognized and preprocessed. In particular, the encoding of the URL will be undone.
The design of the Natural Web Server Extensions allows only the transmission of non-binary data, because the data is converted from ASCII to EBCDIC and vice-versa if required.
Only variables specified on your HTML page will automatically be transferred to the program called. Other variables available from the HTTP server must be specified.
Each variable to be transferred requires an entry in the initialization file.
It is also possible to add variables that will be treated as system environment variables.
You can set up your own error screen with a specific HTML page. Variables of the environment can be specified in this error page.
The page last transferred can be copied to a file and errors can be written to an error log file.
To call a program from your browser, you have to specify a uniform resource locator (URL) which contains the name of you HTTP server and the name of a CGI-enabled directory, where the files of the Natural Web Server Extension are located. Then you have to specify the Natural Web Server Extension program name followed by a Natural library and a subprogram name.
URL for RPC | URL for DCOM | |
---|---|---|
CGI (PC) |
http://server-name/cgi-library/nww3cgi.exe/your-library/your-program
|
http://server-name/cgi-library/nww3dcgi.exe/your-library/your-program
|
ISAPI |
http://server-name/cgi-library/nww3isapi.dll/your-library/your-program
|
http://server-name/cgi-library/nww3disapi.dll/your-library/your-program
|
mod |
http://server-name/nww3/mod/your-library/your-program
|
http://server-name/nww3d/mod/your-library/your-program
|