Web Services |
The Web Services Wizard guides you through the steps to add the necessary service information to your application.
Provide the Service details to get the WSDL description, using one of these:
Click the View button. The description of the Web Service is retrieved from the WSDL and displayed.
Figure 1. Add Web Services - Client consuming WSDL dialog
Copy to - Use the Browse button to specify the directory where a copy of the WSDL file should be saved. If you used the File option to specify the WSDL file, this directory must be different.
Advanced Options button - if you select this button, a dialog displays that allows you to add an external schema file with the WSDL file.
Figure 2. Add Web Services - Client consuming WSDL, Advanced options
Within the Advanced Options dialog:
Add Web Services to Project - if this radio button is selected, the WSDL file will be added to your project in Project Manager. Files that show the Web Services operations as functions in a Genero Program are generated and stored in the Target directory of the application:
Advanced - this radio button gives you the flexibility to write your own web client stub. The 4gl and inc files are generated and added to your project in Project manager. The WSDL file is created in the "copy to" path.
Select the options for code generation and runtime behavior, if you wish to modify the default behavior. See The fglwsdl tool for a complete list of the command options.
Prefix variables and types with namespace - Implements "-autoNsPrefix" option of fglwsdl. Specify the number of words of the namespace that are to be excluded from the prefix. The default prefix is the full namespace, and you may exclude up to nine words. After the ninth word, you can only add the last word of the namespace as the prefix.
The command line is read-only, and is automatically updated when you select an option.
This page displays only if you have selected Advanced in the Web Services Project Integration page of the wizard.
Select Finish to generate the WSDL file and accompanying files.