Writing a Web services server function
You create a standard Genero function and publish it as a Web function (Web services operation) using methods from the classes in the COM library.
There are some restrictions on the function - input and output parameters are not allowed. By using global or module variables, however, you can work around this exception.
See also Tutorial: Writing a GWS Server Application
The steps for writing a Web Services function: