Previous Topic Next topic Print topic


WPF Client

In addition to the default COBOL console client, you can optionally generate a WPF client for Web Service service interfaces. To do so, check the WPF Application option in your Micro Focus Service Interfaces options before generating the client.

WPF 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 myServiceWPFApp, and contains the following components:

References folder
The project references required to run the WPF client application.
Helper folder
Additional COBOL programs and copybooks required to run the WPF client application.
myServiceApp.xaml
A WPF XAML file that marks the entry point of the client application.
myServiceApp.xaml.cbl
The code-behind page for myServiceApp.xaml.
myServiceWin.xaml
A WPF XAML file that defines the visual presentation of the client.
myServiceWin.xaml.cbl
The code-behind page for myServiceWin.xaml.
corplogo.ico
A Micro Focus logo icon used in the visual presentation of the client

Editing a WPF client

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

Running a WPF client

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

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

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

Previous Topic Next topic Print topic