The Web service components generated by WSDL and JSON include a skeleton COBOL program, input and output copybooks, and a
service interface file. The output varies slightly depending on the type of input file(s) provided.
- WSDL
-
- Input File
- A WSDL file that describes a Web service.
- Output Files
- When you generate a Web service from a WSDL file,
Visual COBOL generates the following Web service components:
- WSDLFileName\First8CharsWSDLFileName.cbl
- A skeleton COBOL program.
- WSDLFileName\First5CharsWSDLFileNameI0n.cpy
- A copybook for each of
n operations containing the COBOL data structures required to receive a SOAP request as input.
- WSDLFileName\First5CharsWSDLFileNameO0n.cpy
- A copybook for each of
n operations containing the COBOL data structures required to send a SOAP response message as output.
- WSDLFileName\WSDLFileName.svi
- A service interface file that contains default mappings between the generated COBOL skeleton program and the Web service described
in the WSDL.
- JSON (RESTful)
-
- Input File
- A JSON Schema or OpenAPI (Swagger) file that describes a Web service.
- Output Files
- When you generate a RESTful Web service from JSON,
Visual COBOL generates the following Web service components:
- JSONFileName\First8CharsJSONFileName.cbl
- A skeleton COBOL program.
- JSONFileName\First5CharsJSONFileNameI0n.cpy
- A copybook for each of
n operations containing the COBOL data structures required to receive a JSON request as input.
- JSONFileName\First5CharsJSONFileNameO0n.cpy
- A copybook for each of
n operations containing the COBOL data structures required to send a JSON response as output.
- JSONFileName\JSONFileName.svi
- A service interface file that contains default mappings between the generated COBOL skeleton program and the Web service described
in the JSON.