Previous Topic Next topic Print topic


Generating a COBOL Console Client from a WSDL or JSON File

Restriction: This topic applies only when the Enterprise Server feature is enabled.

You can generate a full COBOL client console application starting from a WSDL or JSON file that was generated using the Interface Mapping Toolkit (IMTK), or created using some other method. You can deploy the client application to Enterprise Server. The generated application files consist of the following, where by default, filename is the file prefix of the WSDL or JSON file:

filename-app.cbl
Main COBOL program
filename-proxy.cbl
Proxy COBOL program called by the main COBOL program
filename-copy.cpy
Copybook containing working storage definitions

Visual COBOL adds these generated files as a new project in the current solution. The new project name is the same as the WSDL or JSON file prefix.

Generate a Client Application from a Service Interface File

You can generate clients from WSDL or JSON files that are part of a service interface.

Clients from WSDL
The WSDL file must be part of a REST Web Services service interface.
Clients from JSON
The JSON file must be part of a SOAP Web Services service interface.
Note: Before generating a client, you can optionally change the default string length to use for unbounded strings and the default array size to use for unbounded arrays. The preset defaults are:
Default string length: 256
Default array size: 256

See To set client generation properties for instructions.

Generate from the Command Line

Generation from the command line is fully documented in the imtkmake command, ls2ws command and ws2ls command topics.

Previous Topic Next topic Print topic