Restriction: This topic applies only when the Enterprise Server feature is enabled.
Restriction: The Microsoft Visual Studio Shell does not support the generation of clients for service interfaces created using the IMTK. To generate clients, you must install a full version of Visual Studio.
You can now generate clients to access the ProgramREST service that you deployed to the ESDEMO
enterprise server region.
Set Client Generation Properties
The generation process automatically produces a console client; however, you can set an option that enables the additional generation of a WPF client.
- From
Visual COBOL, click
Tools >
Options.
- Expand
Micro Focus; then click
Service Interfaces.
- Check
WPF Application; then click
OK.
Generate Console and WPF Clients
- From the Solution Explorer, right-click the
ProgramREST service interface; then select
Generate Clients from the context menu.
You can watch the generation process in the Output window. When it is complete, you'll see the message "Generation succeeded". You should see that two projects have been added to the Solution Explorer:
- ProgramRESTClientApp - the console client.
- ProgramRESTWPFApp - the WPF client.
Each new project contains the client files required to successfully access the ProgramREST service now running on the ESDEMO enterprise server.