Step 2: Create a stateful web service with state variable as parameter

The Genero Web Service extension provides a new Web service constructor called createStatefulWebService() to perform stateful services. This function works as the stateless constructor, but expects a simple state variable as parameter.


DEFINE serv com.WebService
LET serv = com.WebService.CreateStatefulWebService("StatefulCookieService",
# Create a stateful service with a simple BDL variable as state variable