To generate a Web service from WSDL

  1. In Visual Studio, create or open an Enterprise Server Application project that contains a WSDL file that describes a COBOL application.
  2. In the Solution Explorer, right-click the WSDL file; then select Generate Web Service from the context menu.

    On the Generate Web Service dialog box, the selected WSDL file appears in the From field.

  3. Optionally, select an alternative WSDL file from the From drop-down list.
  4. On the Generate Web Service dialog box, optionally specify alternative WSDL Service, WSDL Port, and/or Operation(s) values using their respective drop-down lists.
  5. In the Generate group, select the Service radio button.
  6. Optionally, provide an alternative service name in the Name field under the Service radio button.
  7. In the Program group Name field, optionally provide an alternative program name for the generated skeleton COBOL program.
  8. 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.
  9. 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.
  10. Click OK.

    Visual COBOL 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.

  11. Right-click the .svi file; then select Generate WSBIND from the context menu.

    Visual COBOL 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.