wizard to create a web service and create operations from reusable objects.
You can create operations that look up data in logical data objects, flat file data objects, and relational data objects. You can also create operations from a mapplet or reusable transformation. The mapplet or reusable transformation defines elements of the operation input and output. You cannot create an operation from a Web Service Consumer transformation.
After you complete the steps to create a web service, you can create an operation from a data object, a mapplet, or reusable transformation within the
Create a Web Service
wizard.
In the
New Web Service
dialog box, click the arrow next to the
New
button. Then, select
Operation
Create from a Reusable Object
.
The
Select Reusable Object
dialog box appears.
You can also create an operation from a data object by opening a web service in the
Object Explorer
and selecting
Overview
Operations
area. Click the arrow next to the
New
button.
Select the object and click
OK
.
Optionally, enter the operation name and description.
The Developer tool uses the name you provide for the operation to define the names for the operation input and the operation output.
Select the binding type of the operation.
Default is SOAP 1.1. You cannot change the binding type of the operation after you have created and saved the operation.
Click the operation input to view and configure its properties.
Select the operation input fields on the
Operation Input
tab.
If the object has more than one input group, select the input group and the operation input fields on the
Operation Input
tab.
Optionally, configure the minimum and maximum number of occurrences for each element.
Optionally, click the
Mapping Input
tab to configure how to map data from the operation input to the output ports.
You can also map the data when you configure the Input transformation.
Click the operation output to display and configure its properties.
Select the operation output fields on the
Operation Output
tab.
If the object has more than output group, select the output group and the operation output fields on the
Operation Output
tab.
Optionally, configure the minimum number of occurrences for each element.
Optionally, click the
Mapping Output
tab to configure how to map data from the input ports to the operation output.
You can also map the data when you configure the Output transformation.
If the operation sends user-defined faults, click the arrow next to the
New
button and then click
Fault
.
You can choose to create an element for the fault or select a reusable element.
Click each operation fault to display and configure its properties.
You can click the
Mapping Fault
tab to configure how to map data from the input ports to the operation fault. You can also map the data when you configure the Fault transformation.
Repeat steps 1 through 8 to create and configure more operations.
Click
Finish
.
The Developer tool creates an operation mapping for each operation based on how you configure each operation.
You can optionally create an element or a predefined fault.