Deploy a Web service using the Genero Deployment App

Deploy and secure an Web service using the Genero Deployment App. Start with the Genero Archive (.gar) for the Web Service.

Before you begin
  • Before you can use the Genero Deployment App, you need to configure and enable the Genero Identity Provider (GIP) on your GAS. You use the StarterApp to perform the installation of the GIP. The Genero Deployment App utilizes the Deployment Service. You must select these components in your GIP configuration at the time of installation. For further details, see Setting up the Genero Identity Provider.

  • You must have packaged your applications and services into a Genero Archive.
    Note: When you create a Genero Archive (.gar) with fglgar gar using the --service wsname.42m option, a Web service configuration (.xcf) file is automatically generated from the app. If you have an existing Web service configuration (.xcf) that you would rather use, you must create a MANIFEST file pointing to your Web service configuration file.
    For more information about packaging a Genero Archive, see Understanding packaging with GAS.

The REST Web service, in its source code, should already use the WSScope attribute to define the scopes that will provide security globally for the service (on the WSInfo record) or for its functions. You should have a list of such WSScope entries.

About this task

When you deploy the contents of a Genero Archive using the Genero Deployment App, the registration of the Web service is managed for you. Unlike the Genero application, however, the deployment does not include the generation of a CLIENT_ID or SERVER_ID for the Web service.

  1. Start the Genero Deployment App as an authorized user.
    The Deployment App application is located at http://host:port/gas/ua/r/admin/DeploymentApp.
  2. Deploy the .gar file.
    1. Click Deploy > Genero Archives....
      The Manage Genero Archives form displays.
    2. Click Deploy.
    3. Use the Select your Genero Archive to deploy dialog to select your Genero Archive (.gar).
    The application deploys and is listed under Genero Archive(s).
  3. Secure the Genero Archive.
    1. Select the row containing the deployed Genero Archive.
    2. Click Secure.
      All services contained by the archive are secured.
  4. Change the status of the deployed Genero Archive to Active.
    1. Select the row containing the deployed Genero Archive.
    2. Click Enable.
    The status changes from Inactive to Active.
  5. If the same Genero Archive (.gar) must be deployed on several GAS, repeat the procedure.
  6. If not already registered, register the Web service scopes in the GIP using the Genero Console App.
    Instructions are provided here, or you can see Manage Web service access scopes.
    1. Open the Genero Console App.
    2. Select Security > Services.
      The Service access list form appears.
    3. Click Create.
      A new, empty row is added to the service access list, with the cursor in the Service name field.
    4. Enter a name in the Service name field, and a description in the Description field.
      The name entered can be any name you wish.
      When you have finished, click OK.
    5. With the new service highlighted in the list, click Select.
      The Scope list form displays for the new service. By default, a single scope was created using the name of the service.
    6. Add any additional scopes required by the service.
      It is the WSScope entries in the Genero source that determine what additional scopes need to be entered.
      To add a scope, click Create and enter the information requested.
    7. When you have finished entering all necessary scopes, click Back until you return to the front page of the Genero Console App.