Generating a COBOL Console Client from a WSDL or JSON File

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

Enterprise Developer 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 from the IDE

We provide two methods you can use to generate WSDL or JSON client applications and/or service interfaces from the Enterprise Developer IDE:

New Web Service Client Application from WSDL/JSON project
When you create a new project using the Web Service Client Application from WSDL/JSON template, Enterprise Developer automatically generates the client application when it creates the project.
Service Interface and Client in an Existing Project
You can generate a client application and/or service interface from any WSDL or JSON file included in an existing Enterprise Developer project.

When you generate just a service interface, Enterprise Developer adds the resulting service interface file and skeleton COBOL program to the existing project.

When you generate a client application, Enterprise Developer adds the resulting files to a subfolder in the project.

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 topic.