Previous Topic Next topic Print topic


Generating a Client from a WSDL File

You can generate a COBOL client console application starting from any WSDL file, whether generated using the Service Interfaces feature, or created using some other method. The files generated from a WSDL are:
  • wsdlFileName-app.cbl - main COBOL program
  • wsdlFileName-proxy.cbl - proxy COBOL program called by the main COBOL program
  • wsdlFileName-copy.cpy - copybook containing working storage definitions
  • wsdlFileName.cvt - an xml-formatted file containing data items and entry points
  • wsdlFileName.svi - a service interface file you can further define using the Service Interfaces feature

Generate From the Visual Studio IDE

The Generate Client from WSDL feature is available from the Visual Studio IDE.

Before generating your client, you can optionally change the default string length to use for unbounded strings and the default array size to use for unbounded arrays. Do this from the Visual Studio Options dialog box under Tools > Micro Focus COBOL Tools > Generate Client from WSDL. The preset defaults are:
Default string length: 256
Default array size: 256

Within Visual Studio, if you have a solution open at the time you generate the client, the generated client files are stored within the open solution. However, if you generate a client from Visual Studio without an active open solution, the generated files are written to the %USERPROFILE%\documents\Visual Studio nnnn\Projects\wsdlFileName\wsdlFileNameConsoleApp directory.

To generate a client from a WSDL file, click Tools > Micro Focus COBOL Tools > Generate Client from WSDL; then specify a WSDL filename.

Generate Using the imtkmake Command

Use of this command is fully documented in the topic imtkmake command.

Previous Topic Next topic Print topic