Restriction: This topic applies only when the Enterprise Server feature is enabled.
To generate a console and Java client:
- In
COBOL Explorer, right-click a Java Interface; then click
Generate Client from the context menu.
To generate a console and Web Services client from a service interface:
- In
COBOL Explorer, right-click a Web Service; then click
Generate Client from the context menu.
- Depending on how you want to store your generated client, do one of the following to specify the project:
- Click
No project.
- Click
Current project.
- Click
Select a COBOL project; and then type the project name in the
Project receiving generated client field, or use the
Select button to specify the project.
- Click
Create a new COBOL project; then provide a project name and location using the
New COBOL Project dialog box.
- Type the path to the output directory into the
Output directory field, or use the
Browse button to specify a location.
- For a REST services you can only generate a client from a JSON file:
- Check
Use JSON.
- In the
JSON file field, type the path and file name for the JSON file. Alternatively, click
Browse and navigate to the JSON file.
- In the
String size field, type the default string size to use for unbounded strings.
- In the
Array size field, type the default array size to use for unbounded arrays.
- For a SOAP service you can only generate a client from a WSDL file:
- Check
Use WSDL.
- In the
WSDL file field, type the path and file name for the WSDL file. Alternatively, click
Browse and navigate to the WSDL file.
- In the
String size field, type the default string size to use for unbounded strings.
- In the
Array size field, type the default array size to use for unbounded arrays.
Note: The location you can browse to find the WSDL or JSON files is consistent with the project type, that is, a remote project can only browse the remote machine.
- Click
OK.