Provides instructions for generating both console and Windows Forms 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 Windows Forms client, you must set a generation option.
- From Visual Studio main menu, click
Tools > Options.
- Expand
Micro Focus Tools, and then click
Service Interfaces.
- Check
Windows Forms Application, and then click
OK.
- 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
- COMMWSWinApp - the Windows Forms client
Each new project contains the necessary client files to successfully access the COMMWS service now running on the CICSCA
enterprise server region.
Register the proxy library
If you are running Visual Studio on Windows 7 or earlier, you might be required to register the Proxy Library after generating
a Windows Forms client for the first time. If your generation output contains the following message, follow the steps outlined
below:
Register proxy library COMMWSProxyWrapper.dll in "c:\tutorials\IMTK\CICSCommareaWS\COMMWSWinApp\Bin\Release".
- Start an
Enterprise Developer command prompt as an administrator. If you need instructions, see
To start an Enterprise Developer command prompt as an administrator.
- Change to the directory specified in the client generation output message.
- Enter
regsvr32 COMMWSProxyWrapper.dll.
- Click
OK to clear the RegSvr32 message.