- In Visual Studio, create or open a Mainframe Subsystem project that contains a CICS application that includes a main CICS
COBOL program and request and response JSON schema files that contain input and output data structures respectively.
- In the Solution Explorer, Ctrl-click to select both JSON files.
- Right-click a selected file; then select
Generate Web Service from the context menu.
Note: On the Generate Web Service dialog box, when using a RESTful JSON file, this file appears in the
(For request) field, and the
(For response) field is set to
<None>. When using both request and response JSON files, these appear in the
(For request) and
(For response) fields respectively.
- If necessary, change the values in the
(For request) and
(For response) fields using their respective drop-down lists.
- Select the
Client radio button.
- Check
CICS.
- In the
Program group
Name field, optionally provide an alternative program name for the generated client program.
- Optionally, provide a maximum
Inline array size limit to enable container mappings in the generated client. You can also specify the
Default string length and
Default array size for the client.
- Optionally specify a
CCSID.
- Click
OK.
Note: You are not required to select a type because CWS client applications use the
Channel type by default, and use the default
DFHWS-DATA
Container name. These are automatically set for you.
Enterprise Developer creates a new project that contains the generated CICS application. The new project name is the specified program name plus
CICSClientApp.
Tip: For a description of each field and control on the Generate Web Service dialog box, see the
Generate Web Service dialog box reference topic.