Walks you through the process of creating a
Visual COBOL project for the ScheduleDemo demonstration application and its REST Web service.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
Restriction: This section applies to Windows environments only.
Create the ProgramREST project
- In Eclipse, click
File >
New >
COBOL Project.
- In the
Project name field, type
ProgramREST.
- Check
Use default location; then click
Finish.
Note: If Eclipse prompts you to open the COBOL perspective, click
Open Perspective.
The COBOL Explorer now shows the
ProgramREST project.
Set build configuration properties ProgramREST
When Eclipse builds the ProgramREST project, you want the build action to produce a dynamic link library (.dll) file. To ensure this behavior, you need to set the Build Configuration to the
All Native Library Files target type:
- In the
COBOL Explorer, right-click the
ProgramREST project; then select
Properties from the context menu.
- Expand
Micro Focus > Build Configurations; then click
Link.
- From the
Target Type drop-down list, select
All Native Library Files; then click
Apply and Close.
Add ScheduleDemo demonstration files to the project
- From the COBOL Explorer, right-click the
ProgramREST project and select
Import > Import from the context menu.
This opens the
Import dialog box.
- Expand
General and click File System.
- Click
Next.
- Click the
Browse button that corresponds to the
From directory field, and browse to the
%PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples\Interface Mapping Toolkit\ServiceInterfaces\ScheduleDemo directory.
- Click
Select Folder.
- On the list of files, check all files except the
Readme XML files.
- Click
Finish.
This adds the files to the project and builds the project automatically.