Testing the GWS service in stand-alone mode
Test that your service is reachable and that it can generate the WSDL.
For testing and development purposes only, the Genero Web Services Server application can be executed directly, without using the Genero Application Server (GAS). To run the same application under the GAS instead, go to Configuring the Genero Application Server for the GWS application.
Use the Genero fglrun command to execute the GWS Server application. The application must reside on the same machine:
fglrun gws-applicationThe GWS Server starts on the port set in the FGLAPPSERVER environment variable. Where the variable is not set, the server uses port 80. To start it on port 8090, set the variable in the shell you run fglrun from:
export FGLAPPSERVER=8090 # Linux and macOS set FGLAPPSERVER=8090 # Windows Command Prompt $env:FGLAPPSERVER=8090 # Windows PowerShellWarning:Do not set the FGLAPPSERVER variable in production environments, since the port number is selected by the Genero Application Server.
Generate a client stub from the WSDL of the running service, then write a test client application with it. For example, where the GWS Server started in step 1 runs on your local machine with FGLAPPSERVER set to 8090:
fglwsdl -o client_stub http://localhost:8090/service-name?WSDLFor the command options, go to fglwsdl. To write the client application, go to Steps for writing a client for a SOAP Web service.