Generate Console and WPF Clients

Provides instructions for generating both console and WPF client applications that can be used to access the deployed Web service.
Restriction: For service interfaces, the Microsoft Visual Studio Shell supports the generation of console clients only. To generate any other type of client, you must install a full version of Visual Studio.

Generate the clients

The client generation process automatically produces a console client without further configuration; however, to simultaneously generate a WPF client, you must set a generation option.

  1. From Visual Studio main menu, click Tools > Options.
  2. Expand Micro Focus Tools, and then click Service Interfaces.
  3. Check WPF Application, and then click OK.
  4. On the Solution Explorer, right-click the COMMWS service interface, and select Generate Clients from the context menu.
You can watch the generation process in the Output window. When it is complete, you should see the message Generation succeeded. In the Solution Explorer, two new projects have been added to the solution:
  • COMMWSClientApp - the console client
  • COMMWSWPFApp - the WPF client

Each new project contains the necessary client files to successfully access the COMMWS service now running on the CICSCA enterprise server region.

Build the WPF Client Project

You need to build a WPF client project before you can run or debug it.

  • On the Solution Explorer, right-click the COMMWSWPFApp project, and then select Build from the context menu.