Step 4: Register the service

Register the service with the Genero Web Services (GWS) server.

Once the Service and operations are defined and the operations are published, the WebService and WebOperation objects have completed their work. Registering a service puts the Genero DVM in charge of the execution of all the operations of that service - dispatching the incoming message to the right service, returning the correct output, and so on. The same service may be registered at different locations on the Web.

The WebServiceEngine is a global built-in object that manages the Server part of the Genero DVM. To register a service, call the com.WebServiceEngine.RegisterService() class method, passing the name of the WebService object.

To register the "MyCalculator" service and close the createservice() function, both created in Step 3: Create the service and operations:
CALL com.WebServiceEngine.RegisterService(serv)
END FUNCTION