Generating stub files for a GWS Client

Use the fglwsdl tool to generate the BDL stub from a WSDL URL or file.

This example requests the Calculator Web service information from the specified URL, and the output files will have the base name ws_calculator:
fglwsdl -soap12 -o ws_calculator http://localhost:8090/Calculator?WSDL

For a client application, fglwsdl generates two output files. It is not advised to modify these files:

  • filename.inc - the globals file, containing declarations of global variables that can be used as input or output for functions accessing Web service operations, and the global wsError record. In our example, the file is ws_calculator.inc.

    This file must be listed in a GLOBALS statement at the top of any .4gl modules that you write for your GWS Client application.

  • filename.4gl - containing the definitions of the functions that can be used in your GWS client application to perform the requested Web service operation, and the code that manages the Web service request. In our example, the file is ws_calculator.4gl.

    This file must be compiled and linked into your GWS Client application.