Top
NetCOBOL V11.0 ISAPI Subroutines User's Guide
FUJITSU Software

2.2.2 HttpExtensionProc

The Web application called for each request from the WWW Browser. ISAPI Subroutines can only call a program with this entry name. A program with this entry name must always be created.

The following explains the precautions to be taken when creating a program with this entry name.

IDENTIFICATION DIVISION

Write the program name in the PROGRAM-ID paragraph as shown below:

PROGRAM-ID. "HttpExtensionProc".

Note

Write the program name correctly, paying attention to the upper-case/lower-case characters. It is case sensitive when working with ISAPI. If the program name is not correct, the application will not run.

ENVIRONMENT DIVISION

None

DATA DIVISION

PROCEDURE DIVISION

Write the following to fit to the calling interface from IIS.

PROCEDURE DIVISION WITH STDCALL LINKAGE USING ISAPI-CTX-CNT.

Since ISAPI-CTX-CNT obtained in the above way is needed for ISAPI Subroutines to exchange data with IIS, set its pointer to COBW3-CONTEXT as shown below:

MOVE LOW-VALUE TO COBW3.
MOVE FUNCTION ADDR(ISAPI-CTX-CNT) TO COBW3-CONTEXT.