com.WebOperation.initiateSession
Defines the Web Operation as session initiator.
Syntax
initiateSession(
ok INTEGER )
- 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).