The CDF2C utility uses the information in the CDF to generate interprocess message (IPM) definitions that correspond to each of the Web service's methods. The definitions are output in ANSI C format. Ultimately, you'll incorporate these definitions into your own application to use in calling a Web service method.
The general syntax to start the CDF2C program from TACL is
> run CDF2C / run-options / [ command-line-parameters ]
run-options
The standard TACL run options.
command-line-parameters
@<command-file>
Reads command line parameters from <command-file>. Parameters specified on the command line override any specified in the file. At most, one '@' parameter may used. The file itself cannot contain an '@' parameter (i.e., no nesting).
-cdf <file name>
The Guardian file name of an existing Client Definition File. This parameter is required.
-outfile <file name> [!]
The name of a new or existing C header file to be created or replaced. If the file already exists, specify the '!' option to indicate that the existing file should be overwritten. This parameter is required.
-help
Displays documentation for the program command line options.
Remarks
If multiple occurrences of the same command line parameter are encountered, the last occurrence is used.
CDF2C may change the names of some elements as it generates output in order to comply with C language variable naming rules and reserved word restrictions. Refer to Element Name Considerations for more information.
Structures generated by CDF2C are not subject to the same 32,767 byte limit inherent in the CDF2DDL utility.
Examples
>run cdf2c –cdf echocdf -outfile echoh