Previous Topic Next topic Print topic


COBOL Console Client

All service types automatically generate a COBOL console application client. As part of client generation, a proxy program is also generated. The proxy provides a standard mechanism for invoking the service, and is intended to be used by production clients.

Console client project

All service types automatically generate a COBOL console application client. As part of client generation, a proxy program is also generated. The proxy provides a standard mechanism for invoking the service, and is intended to be used by production clients.

After generating a client, Enterprise Developer adds a client project to the solution that contains your service interface. The name of the project is myserviceClientApp, and contains the following components:

myservice-app.cbl
The generated client COBOL program.
myservice-app.cpy
A generated COBOL copybook used by the client program.
myservice-proxy.cbl
A COBOL program for invoking the service via a production client.
myservice-proxy.cpy
A copybook used by the proxy program.

Editing a console client program

To enhance its appearance and usability, you can optionally edit a console client program using the Enterprise Developer COBOL editor, or any text editor.

Running a console client

You can run a console client directly from your project using the Enterprise Developer Debugger. Before doing so, ensure that:

  • The enterprise server region configured to run the service is associated with the project that contains your service interface (.svi) file
  • The enterprise server region is started
  • Your service interface is deployed to the enterprise server region
  • The console client project is set as the startup project
  • The COBOL application is started in the Debugger

When you start the Debugger, Enterprise Developer automatically builds the client project and executes it.

Previous Topic Next topic Print topic