We will now generate Web Services clients to access the CICSScreenWS service that we deployed to our CICSEXT enterprise server.
Note: Be sure you have met all of the prerequisites for generating Windows Forms clients as specified in the topic
Prerequisites.
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.
The generation process for Web Services automatically produces a console client; however, we must set an option to enable generation of a Windows Forms client.
- From Visual Studio, click
Tools >
Options.
- Expand
Micro Focus; then click
Service Interfaces.
- Check
Windows Forms Application; then click
OK.
- From the Solution Explorer, right-click the
CICSScreenWS service interface; then click
Generate Clients.
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:
- CICSScreenWSConsoleApp - the console client.
- CICSScreenWSWinApp - the Windows Forms client.
Each new project contains the necessary client files to successfully access the CICSScreenWS service now running on the CICSEXT enterprise server.