Writing a Web server application / Example 1: Writing the entire server application |
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. Use the RegisterService class method of the WebServiceEngine class. The parameter is:
CALL com.WebServiceEngine.RegisterService(serv) END FUNCTION