endStatefulServiceSession
The serviceLib.endStatefulServiceSession() system function ends the HTTP session being used by a service. The action releases runtime resources; specifically, the resources used to access EGL REST-RPC services that in turn access UI programs or stateful IBM® i programs.
For details on UI programs, see UI program and the gateway interface. For details on a means of accessing IBM® i called programs and service programs, see Accessing IBM® i programs as web services: overview.
Syntax
serviceLib.endStatefulServiceSession(variable Service | Interface in, exceptionHandler FunctionReference)
- variable
- A variable used to access the service. The variable is based on a Service or Interface part.
- exceptionHandler
- A function that runs if the statement does not succeed; for example, because a network failure interferes.