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.”
serviceLib.endStatefulServiceSession(variable Service | Interface in, exceptionHandler FunctionReference)