Creating New Mediation Flows from Existing Web Services
To mediate existing web services, you can create new mediation flows for each interface. This is useful if there are multiple services and you want to create one mediation flow for each service.
Prerequisites
Before creating mediation flows, ensure that the WSDL files that describe the interfaces have been imported into the project. See Composite Development for more information about importing WSDL files.
Procedure
Start the mediation flow wizard.
Right-click the Mediation Flows folder in the Project Explorer.
Choose
New > Mediation Flow from the pop-up menu.
Select the option
Multiple Mediation Flows Using Existing Web Services.
You can also select the
Create Composite checkbox if you want to create a corresponding composite for the mediation flows.
See
Mediation Components for more information about working with components and composites.
Click
Next to select the interfaces for the mediation flow.
Select the WSDL files to use when you create mediation flows.
You can select and add WSDL files individually, or click the
Add All>>
button to add all files to the Selected Interfaces list.
You can remove one or more WSDL files using the
<Remove and
<<Remove All buttons.
A mediation flow is created for each WSDL file. The target interfaces and mediation interfaces are the same, and a path is automatically created between operations of the same name. If a WSDL file includes more than one port type, each port type is added to the mediation flow created for the file.
The next step depends on whether you checked the
Create Composite option:
If you did not check the Create Composite option, click
Finish to create the mediation flows and composite.
If you checked the option to create a composite, click
Next to specify the binding type — JMS, SOAP/HTTP, SOAP/JMS.
If you select SOAP/HTTP, additionally specify the
Connector.
Click
Finish to create the mediation flows and composite.