Calling a web service function A GWS REST service is called through a client application. Write the MAIN program code blockImport the client stub, and call its functions.Call the stub functionsFunctions in the stub file allows you to write code in your own .4gl module that calls these functions as part of your client application.Handle GWS REST server errorsWhen a call to a Genero Web Services REST function returns a status, you can check for server errors.