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
LET serv = com.WebService.CreateStatefulWebService(
"StatefulWSAddressingService","http://4js.com/services",
EndpointReferenceState) # Create a stateful service
# with a W3CEndpointReference state variable
CALL serv.setFeature("WS-Addressing1.0","REQUIRED") # enable
# support of WS-Addressing 1.0