Step 2: Create a stateful WS-Addressing enabled web service with W3CEndpointReference record as a 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 W3CEndpointReference record as parameter.

For example:
DEFINE serv com.WebService

# Create a stateful service with a W3CEndpointReference state variable
LET serv = com.WebService.CreateStatefulWebService(
  "StatefulWSAddressingService","http://mywebsite.com/services",
  EndpointReferenceState)

# Enable support of WS-Addressing 1.0
CALL serv.setFeature("WS-Addressing1.0","REQUIRED")