Set Up the ProgramREST Project

Provides instructions that guide you through the process of creating a Visual COBOL solution and project for the ScheduleDemo application and a Web service.
Restriction: This topic applies only when the Enterprise Server feature is enabled.

Create the ProgramREST project

  1. Open a Visual Studio command prompt and enter:
    devenv
    This starts Visual Studio. If you are prompted to select an initial action, click Continue without code.
  2. In Visual Studio, click File > New > Project.
  3. In the Create a new project dialog box, select COBOL from the Language drop-down list.
  4. In the two remaining drop-down lists, select Windows and Enterprise Server respectively.
  5. Select Enterprise Server Application.
  6. Click Next.
  7. Complete the Name and Location fields as follows:
    Name ProgramREST

    By default, this is the name of both the project and the solution.

    Location c:\tutorials\IMTK
  8. Check Place solution and project in the same directory.
  9. Click Create.

    Visual Studio opens the Solution Explorer for the ProgramREST solution, showing the ProgramREST project.

Add ScheduleDemo demonstration files to the project

  1. Right-click the ProgramREST project, and select Add > Existing Item from the context menu.
  2. Browse to the %PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples\Interface Mapping Toolkit\ServiceInterfaces\ScheduleDemo folder.
  3. From the drop-down list, click All files (*.*)
  4. Select all files except the Readme XML files; then click Add.

Save the ProgramREST project

  • In the Solution Explorer, select the ProgramREST project, and then click File > Save ProgramREST on the Visual Studio main menu.