Provides instructions for generating both console and Windows Forms client applications that can be used to access the deployed
Web service.
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
ACCTWS 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:
- ACCTWSClientApp - the console client
- ACCTWSWinApp - the Windows Forms client
Each new project contains the necessary client files to successfully access the ACCTWS service now running on the CICSEXT
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 ACCTWSProxyWrapper.dll in "c:\tutorials\IMTK\CICSScreenWS\ACCTWSWinApp\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 ACCTWSProxyWrapper.dll.
- Click
OK to clear the RegSvr32 message.