Windows Forms Client

In addition to the default COBOL console client, you can optionally generate a Windows Forms client for a service interface.

Windows Forms client project

After generating a client, Enterprise Developer adds a client project to the solution that contains your service interface. The name of the project is myserviceWinApp, and contains the following components:

References folder
The project references required to run the Windows Forms client application.
Helper folder
Additional COBOL programs and copybooks required to run the Windows Forms client application.
myserviceForm.cbl
A COBOL program that executes the Windows Forms interface.
myserviceForm.Designer.cbl
A Windows Forms Designer COBOL program that defines the visual presentation of the client.
myserviceForm.ico
A Micro Focus logo icon used in the visual presentation of the client.
myserviceMain.cbl
The generated client COBOL program.

Editing a Windows Forms client

To enhance its appearance and usability, you can optionally edit a Windows Forms client component from Enterprise Developer by double-clicking a client component from the Solution Explorer.

Running a Windows Forms client

You can run a Windows Forms client directly from your project using the Enterprise Developer Debugger. Before doing so, ensure that:

  • The enterprise server region configured to run the service is associated with the project that contains your service interface (.svi) file
  • The enterprise server region is started
  • Your service interface is deployed to the enterprise server region
  • The Windows Forms client project is set as the startup project

When you start the Debugger, Enterprise Developer automatically builds the client project and executes it.