- In Visual Studio, create or open an Enterprise Server Application project that contains request and response JSON schema files
that jointly describe a COBOL application.
- In the Solution Explorer, select the JSON schema files.
- Right-click one of the selected files; then select
Generate Web Service from the context menu.
Note: The Generate Web Service dialog box populates the
(For request) and
(For response) fields using the selected JSON schema files in the order they appear in the project respectively. Be sure that the
(For request) field shows the name of the schema file that defines input data, and that the
(For response) field shows the name of the schema file that defines output data.
- On the Generate Web Service dialog box, if necessary, change the filenames in the
(For request) and
(For response) fields using their respective drop-down lists.
- Optionally check one or more specific
Operation(s) from the drop-down list.
- Select the
Service radio button.
- Optionally, provide an alternative service name in the
Name field under the
Service radio button.
- In the
Program group
Name field, optionally provide an alternative program name for the generated skeleton COBOL program.
- Optionally, provide an
Inline array size limit to generate separate structures for mappings of variable arrays in the generated service. For more information, see
Handling Variable Arrays in WSDL and JSON - Native COBOL.
- Optionally, specify an alternative
Default string length and/or
Default array size for the service.
Note: The
Character Set and
Bit Mode options apply to client generation only and are therefore grayed out. Web service generation uses ASCII 32-bit by default.
- Click
OK.
Enterprise Developer generates and adds a skeleton COBOL program and a service interface (.svi) file to the current project in a folder with the same name as the specified program name.
- Right-click the
.svi file; then select
Generate WSBIND from the context menu.
Enterprise Developer generates a
.wsbind file and adds it to the current project in a folder with the same name as the specified program name.
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.