Previous Topic Next topic Print topic


Deploy a Service Interface

Restriction: This topic applies to Windows environments (local development) only.

To successfully deploy a REST service interface to an enterprise server region, you need to first set some options in Enterprise Developer.

Set Deployment Properties

To ensure that the deployment process runs smoothly, you must set some options that tell Enterprise Developer where to find certain files.

  1. From the COBOL Explorer, right-click the ProgramREST service interface; then click Properties.
  2. On the Deployment Server tab, click the Change button that corresponds to the Enterprise Server name field.
  3. Select ESDEMO; then click OK.
  4. On the Application Files tab, click Legacy application needs deploying; then click Add Files to add the following files:
    File Location
    • appoint.dat
    • consultants.dat
    • customers.dat

    Your project's ProgramREST folder

    schedule.dll Your project's New_Configuration.bin folder

    These files are copied to the enterprise server when you deploy. The .dll is the executable file you need to debug the service. The .dat files are data files accessed by the service.

Start the ESDEMO Enterprise Server Region

Before deploying your service interface, you must start the ESDEMO region where the ProgramREST service will run.

  1. If the Server Explorer in Enterprise Developer is not active, click Window > Show View > Other > Micro Focus COBOL > Server Explorer; then click OK.
  2. From the Server Explorer, expand Local [localhost:86] to see a list of available enterprise server regions.
  3. To start the ESDEMO enterprise server region, right-click it; then click Start.
    Note: If this is the first time you have started the server you see a sign-on dialog box. If Store Credentials is not selected, check it. Checking Store Credentials prevents this dialog box from showing by default when you subsequently start an enterprise server region. Then click OK.

The Enterprise Server Daemon is then invoked via the Console, starting the ESDEMO enterprise server region.

Deploy to Enterprise Server

  • From COBOL Explorer, right-click the ProgramREST Web Service; then click Deploy.

The Console shows the progression of the deployment process. If deployment is successful, you should see a message indicating that deployment was completed. If the deployment process produced some warnings, this does not affect the validity of the deployment process.

If deployment were to fail, you should find a message in the Console indicating why it failed. Also, the failure message contains the path to the deployment log file. You can type the address into a browser and view the log file from there.

View Deployment Results

Now that your service interface has been deployed as a service running on the ESDEMO enterprise server, you can look at the details of the deployed service via the Enterprise Server Administration page.

  1. From Server Explorer, right-click Local [localhost:86]; then click Open Administration Page.

    The Enterprise Server Administration Home page starts in Enterprise Developer.

    In the row showing information for the ESDEMO enterprise server, you should see that the Objects column shows the number of services that this enterprise server region runs. In this case, the number of running services should be at least 7. These are the five that come standard with the ESDEMO enterprise server, plus the one service you added containing two operations. You might see more if you have deployed other services to the ESDEMO enterprise server.

  2. Click the Details button for the ESDEMO Services.

    In the row showing your new service, ProgramREST, you'll notice that the Current Status column shows both operations as Available. This means that the service is ready to be accessed by a client.

  3. Close Enterprise Server Administration.
Previous Topic Next topic Print topic