Provides instructions for generating a COBOL client to access the MakeCheckAppt Web service.
You can now generate a COBOL client to access the MakeCheckAppt Web service that you deployed to the ESREST
enterprise server instance.
Visual COBOL requires that client applications running on UNIX systems are built using the
Single Executable File target type. When the main project uses a target type other than
Single Executable File as does the ProgramREST project (uses the
All Native Library Files target type), you must generate the client applications into a separate project.
- From the
COBOL Explorer, right-click the
MakeCheckAppt Web Service; then select
Generate Client from the context menu.
- On the
Generate Client dialog box, click
Create a new COBOL project.
- On the
Generate Client dialog box, type
ProgramRESTClient into the
Project Name field, and then click
OK.
- Click
OK to generate the client.
Note: The
Single Executable File target type is the default build configuration setting in the new project. To confirm this:
- In the
COBOL Explorer, right-click the
ProgramRESTClient project; then select
Properties from the context menu.
- Expand
Micro Focus > Build Configurations; then click
Link.
The
Target Type field should be set to
Single Executable File.
- Click
Close.
You can watch the generation process in the
Service Interfaces Console. When it is complete, you'll see the message "The client generation completed successfully" after which Eclipse rebuilds
the project. You should see that the following files have been added to the project:
- COBOL Programs > client >
MakeCheckAppt-app.cbl
- COBOL Programs > client >
MakeCheckAppt-proxy.cbl
- Copybooks > client >
MakeCheckAppt-copy.cpy