To generate a COBOL console client from JSON Schema or OpenAPI (Swagger)

Restriction: This topic applies only when the Enterprise Server feature is enabled.
  1. In Visual Studio, create or open an Enterprise Server Application project that contains a JSON Schema or OpenAPI (Swagger).
  2. In the Solution Explorer, right-click the JSON Schema or OpenAPI (Swagger); then select Generate Web Service from the context menu.
  3. On the Generate Web Service dialog box, optionally check one or more specific Operation(s) from the drop-down list.
  4. Select the Client radio button.
  5. In the Program group Name field, optionally provide an alternative program name for the generated client program.
  6. Optionally, provide an Inline array size limit to generate separate structures for mappings of variable arrays in the generated client. For more information, see Handling Variable Arrays in WSDL and JSON - Native COBOL.
  7. Optionally, specify an alternative Default string length and/or Default array size for the client.
  8. Select the appropriate Character Set and Bit Mode.
  9. Click OK.

    Visual COBOL creates a new project that contains the generated COBOL console client application. The new project name is the specified program name plus ClientApp.

Tip: For a description of each field and control on the Generate Web Service dialog box, see the Generate Web Service dialog box - Native COBOL reference topic.