Interface Methods and Sequence of Calls

The following table lists the interface methods, sequence of calls, description of a method, and its syntax. For more details on the syntax of each method and its parameters, see Details of the Interface Methods.

Sequence of Calls

Interface Methods

Description

1. Initialization

INITHTTPLIBRARY

This function initializes the interface to the WebAppSupport library.

2. Create HTTP Session

CREATEHTTPSESSION

This method creates a new connection to the host and returns the host and the client handle depending upon the parameters SERVER, PORT-NUMBER, and BASE-PATH.

3.Send HTTP Request

OR

Send HTTPS Request

SENDHTTPREQUEST

OR

SENDHTTPSREQUEST

The SENDHTTPREQUEST method is used to send the COBOL payload data to the ePortal service proxy running on the Web Cluster as an HTTP request.

The SENDHTTPSREQUEST method is used to send the COBOL payload data to the ePortal service proxy running on the Web Cluster in a secure way.

4. Receive HTTP Response

RECEIVEHTTPRESPONSE

This method reads the HTTP response. If the library is initialized to send and receive the message in an asynchronous mode of communication, call this message in a loop until the message returns a result other than -83.

5. Destroy HTTP Session

DESTROYHTTPSESSION

This method releases the socket and request objects in the WEBAPPSUPPORT library.

6. Close HTTP Library

CLOSEHTTPLIBRARY

This method closes all the host and client objects created as a part of initialization.