To Define Services for a Mediator Using a Wire:
-
In the SOA Composite Editor, drag a wire from a Mediator to a service.
For more information about wires and how to wire a service component to a service, see How to Wire a Service and a Service Component.
Note:
You can also wire a Mediator with a defined service interface to another interface. However, to connect a Mediator to a service, the interface of the Mediator and of the service must match.
When you define a service using a wire, the service for the Mediator is automatically defined using the WSDL file from the wire source. For example, if you connect the ReadFile service shown in Figure 19-19 to the CustomerDataRouter Mediator, the CustomerDataRouter Mediator automatically inherits the service definition of the ReadFile service.
Figure 19-19 Connecting Mediator to a Service
Description of "Figure 19-19 Connecting Mediator to a Service"For information about how wiring two Mediator service components can cause an infinite loop, see What You May Need to Know About Adding and Deleting Wires.