com.WebOperation.initiateSession

Defines the Web Operation as session initiator.

Syntax

initiateSession(
   ok INTEGER  )
  1. ok must have an integer value of 1 to define a session initiator.

Usage

Pass the parameter with the value of 1 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).