Create and publish the Web services operation

Methods are available in the Genero Web Services library (com) to:

The com library must be imported into each module of a Web Services Server application.

The following abbreviated example is from the Web Services Server tutorial:
IMPORT com
...
FUNCTION createservice()
    DEFINE serv  com.WebService    # A WebService
    DEFINE op    com.WebOperation  # Operation of a WebService

   --Create WebService object
   LET serv = com.WebService.CreateWebService("MyCalculator",
                        "http://tempuri.org/webservices")

   --Create WebOperation object
   LET op = com.WebOperation.CreateRPCStyle("add", "Add", add_in, add_out)

   --Publish the operation, associating it with the WebService object
   CALL serv.publishOperation(op,NULL)
...
END FUNCTION

See the Web Services Server tutorial and Choosing a Web Service Style for complete examples and explanations.