What You May Need to Know About Adding and Deleting Wires

Note the following details about adding wires:

  • A service component can be wired to another service component if its reference matches the service of the target service component. Note that the match implies the same interface and callback interface.

  • Adding the following wiring between two Oracle Mediator service components causes an infinite loop:

    • Create a business event.

    • Create an Oracle Mediator service component and subscribe to the event.

    • Create a second Oracle Mediator service component to publish the same event.

    • Wire the first Oracle Mediator to the second Oracle Mediator component service.

    If you remove the wire between the two Oracle Mediators, then for every message, the second Oracle Mediator can publish the event and the first Oracle Mediator can subscribe to it.

Note the following details about deleting wires:

  • When a wire is deleted, the component's outbound reference is automatically deleted and the component is notified so that it can clean up (delete the partner link, clear routing rules, and so on). However, the component's service interface is never deleted. All Oracle SOA Suite services are defined by their WSDL interface. When a component's interface is defined, there is no automatic deletion of the service interface in the SOA Composite Editor.

    If you want to change the service WSDL interface, there are several workarounds:

    • In most cases, you just want to change the schema instead of the inbound service definition. In the SOA Composite Editor, click any interface icon that uses the WSDL. For example, you can click the web service interface icon or the Oracle Mediator service icon. This invokes the Update Interface dialog, which enables you to change the schema for any WSDL message.

    • If you are using an Oracle Mediator service component, the Refresh operations from WSDL icon of the Oracle Mediator Editor enables you to refresh (after adding new operations) or replace the Oracle Mediator WSDL. However, you are warned if the current operations are to be deleted. If you change the WSDL to the new inbound service WSDL using this icon, the wire typically breaks because the interface has changed. You can then wire Oracle Mediator to the new service.

    • In many cases, a new service requires a completely new Oracle Mediator. Delete the old Oracle Mediator, create a new one, and wire it to the new service.

    • If you are using a BPEL process service component, select a new WSDL through the Edit Partner Link dialog.

    See How to View Schemas for details about the Update Interface dialog.