wizard to define operations and to define the operation input, operation output, and operation faults for each operation.
After you complete the steps to create a web service, you can create and configure the operation from 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 as empty
.
Enter a name for the operation.
The Developer tool uses the operation name to define the names for the operation input and the operation output.
Select the SOAP version for the operation as the
Binding Type
.
To define fault messages, click the arrow next to the
New
button and then click
Fault.
You can choose to create each element for the fault message or select reusable elements. The wizard adds the elements to the detail element in the fault message.
Click the operation input to display and configure its properties.
Click the
Operation Input
tab.
To add elements, click the arrow next to the
New
button, and then click
Element
. To add child elements, select an element, click the arrow next to the
New
button and click
Child Element
.
To specify a type for each element, click the selection button in the
Type
field. Choose an XSD type or a schema object type and click
OK
.
Click the
Type
field and enter the first few characters of the type you want to select. A list of XSD types with names that start with the characters you enter will appear in a list.
Configure the minimum and maximum number of occurrences for each element.
Optionally, enter a description for each element.
Optionally, click the
Mapping Input
tab to map data from the operation input to the output ports.
You can also map the data when you configure the Input transformation.
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.
Click the operation output to display and configure its properties.
Click the
Operation Output
tab.
To add elements, click the arrow next to the
New
button, and then click
Element
. To add child elements, select an element, click the arrow next to the
New
button, and then click
Child Element
.
To specify a type for each element, click the selection button in the
Type
field. Then, choose an XSD type or a schema object type and click
OK
.
Configure the minimum and maximum number of occurrences for each element.
Optionally, enter a description for each element.
Optionally, click the
Mapping Output
tab to map data from the input ports to the operating output.
You can also map the data when you configure the Output transformation.
Repeat steps 1 through 4 to add 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.