Step 2: Import the stub file (legacy)

If you have generated stub files for compatibility with a legacy GWS client application (an application created with Genero 3.20 or prior), add a GLOBALS statement at the top of the .4gl module to specify the globals file generated from the WSDL using the fglwsdl command.

To explain how you code a Genero client application that accesses a SOAP Web service, this documentation uses the example of a calculator client application. This application accesses the Add operation in the MyCalculator Web service. To write the client, you simply need to access the WSDL for the Web service. To learn how to program the service, see Writing a Web server application.

In the client calculator example example, the client stub files created were named ws_calculator.inc and ws_calculator.4gl. The GLOBALS statement references the file with the .inc extension:
GLOBALS "ws_calculator.inc"