Writing a Web Services server application / WS server stubs and handlers |
You can write a Genero Web Services Server application for a Web Service that you have created; see Tutorial: Writing a Server Application.
If you want to make sure your Web Service is compatible with that of a third-party (an accounting application vendor, for example), you can use the fglwsdl tool to obtain the WSDL information that complies with that vendor's standards, and to generate corresponding files that can be used in your GWS Server application.
fglwsdl -s -o ws_calculator http://localhost:8090/Calculator?WSDL
For a server application, fglwsdl generates two files, which should not be modified:
This file must be listed in a GLOBALS statement at the top of any .4gl modules that you write for your GWS Server application.
This file must be compiled and linked into your GWS Server application.