Explore Genero demo web services (server side)

You can explore the web services that the GAS can deliver by launching demo applications that invoke them.

Before you begin, you must:
  • Have the Genero product suite installed locally.
  • It is recommended to have Genero Studio installed (which by default includes the Genero Business Development Language, Genero Application Server, and Genero Desktop Client).
The goal of this quick start is to provide you with some basic experience in using the Genero Application Server to start the Genero BDL Demos application. This quick start uses the standalone GAS dispatcher (httpdispatch), which limits this quick start to a local install but simplifies the process by bypassing the need for a web server.
Important:

The standalone GAS is for development only; provided to simplify your development setup and configuration. For deployment and production systems, you must include a web server.

  1. If your standalone dispatcher is not running, start it from the command line by typing httpdispatch.
    • On Linux®/macOS™, change to your Genero Studio GAS directory and type httpdispatch, for example:
      cd /opt/fourjs/gst/gas/bin
      httpdispatch
    • On Windows®, change to your Genero Studio GAS directory and type httpdispatch, for example:
      cd "c:\program files\fourjs\gst\gas\bin"
      httpdispatch
  2. To show for example that the web service called Calculator is working, you can retrieve its Web Service Description Location (WSDL)
    Enter the address http://localhost:6394/ws/r/demo/Calculator?WSDL in a browser
    Note:

    The WSDL provides you with details such as the address of the service. For more information on WSDL, please see the Genero Business Development Language User Guide.

    <?xml version="1.0" encoding="UTF-8" ?>
    -<wsdl:definitions targetNamespace="http://tempuri.org/" name="Calculator" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" 
      xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
      xmlns:fjs="http://tempuri.org/" 
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    ...
     <wsdl:service name="Calculator">
      <wsdl:port name="CalculatorPortType" binding="fjs:CalculatorBinding">
        <soap:address location="http://localhost:6394/ws/r/demo/Calculator"/>
      </wsdl:port>
      <wsdl:port name="CalculatorPortTypeSoap12" binding="fjs:CalculatorBindingSoap12">
        <soap12:address location="http://localhost:6394/ws/r/demo/Calculator"/>
      </wsdl:port>
     </wsdl:service>
    </wsdl:definitions>
  3. To interact with the Calculator web service, start an application that uses it by performing the following steps:
    1. In a browser tab enter the address of the demo applications, http://localhost:6394/ua/r/demo.
    2. In the Topic tree, navigate to WebServices > Calculator > Client. Double-click on the demo Calculator Soap 1.2.
      The Web Services URL dialog appears. From the URL field select the URL stating http://localhost:6394/ws/r/demo/Calculator.
    3. Click OK.
      You should see a calculator screen and be able to interact with it.