This section describes how to define an Advanced WebService schema. For information about how to define a Simple WSDL schema, see Setting up a simple schema.
Defining general properties
In the Repository view, expand the metadata node.
Right-click Web Service and select Create WSDL schema from the context menu list.
Enter the generic schema information, such as its Name and Description.
Click Next to select the schema type in step 2.
Selecting the type of schema (Advanced)
In this step, you must indicate whether you want to create a Simple or an Advanced schema. In this example, an Advanced schema is created.
In the dialog box, select the Advanced WebService option.
Click Next to defineprecise Web Service parameters.
Defining the port name and operation
Type in the URI of the Web Service WSDL file manually by typing in the WSDL field, or click the Browse... button to browse your directory if your WSDL is stored locally.
Click the Refresh button to retrieve the list of port names and operations available.
Select the port name to be used, in the Port Name zone, countrySoap12 in this example.
Select the operation to be carried out in the Operation zone.
In this example, select GetCountryByCountryCode(parameters):string to retrieve the country name for a given country code.
Next, you need to define the input and output schemas and schema-parameter mappings in the Input mapping and Output mapping tabs.
Defining the input schemas and mappings
To define the input schema and mappings, do the following:
Click the Input mapping tab to define the input schema and set the parameters required to execute the operation.
In the table to the right, select the parameters row and click the [+] button to open the [ParameterTree] dialog box.
Selectthe parameter you want to use and click OK to close the dialog box.
A new row appears showing the parameter you added, CountryCode in this example.
In the table to the left, click the Schema Management button to open the [Schema] dialog box.
Define the input schema.
In this example, the schema has only one column: CountryCode.
Click OK to validate this addition and close the dialog box.
Create mappings between schema columns and parameters.
In this example, drop the CountryCode column from the left table onto the parameters.CountryCode row to the right.
A red line shows that the column is mapped.
If available, use the Auto Map button situated to the top of the tab, to carry out the mapping automatically.
Defining the output schemas and mappings
To define the output schema and mappings, proceed as follows:
Click the Output mapping tab to define the output schema and set its parameters.
In the table to the left, select the parameter row and click the [+] button to add a parameter.
The [ParameterTree] dialog box opens.
Select the parameter and click OK to close the dialog box.
A new row appears showing the parameter you added, GetCountryByCountryCodeResult in this example.
In the table to the right, click [...] to open the [Schema] dialog box.
Define the output schema.
In this example, the schema has only one column: Result.
Click OK to validate your addition and close the dialog box.
Create output parameter-schema mappings.
In this example, drop the parameters.GetCountryByCountyCodeResult row from the table to the left onto the Result column to the right.
Click Next to finalize the schema.
Depending on the type of the output, you can choose to normalize or denormalize the results by clicking the Normalize and Denormalize buttons.
Finalizing the end schema
In this step the wizard displays the output schema generated.
You can customize the metadata by changing or adding information in the Name and Comment fields and make further modifications using the toolbar, for example:
Add or delete columns using the and buttons.
Change the column order by clicking the and arrows.
Click Finish to finalize your advanced schema.
The new schema is added to the Repository under the corresponding Web Service node. You can now drop it onto the design workspace as a tWebService component in your Job.