com.WebOperation.initiateSession

Defines the Web Operation as session initiator.

Syntax

initiateSession(
   initiator BOOLEAN )
  1. initiator must be TRUE to define a session initiator.

Usage

Pass TRUE as parameter to initiateSession() in order to define the current Web Operation as a session initiator.

A new session must be instantiated in this operation, and must be returned to the client via the state variable defined at service creation.

This method works only for stateful web services.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).