What You May Need to Know About Adding and Deleting Wires

2-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite ■ 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 components 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 components interface is never deleted. All Oracle SOA Suite services are defined by their WSDL interface. When a components 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 Section 2.3.3, How to View Schemas for details about the Update Interface dialog.

2.6 Adding Security

As you create your SOA composite application, you can secure web services by attaching policies to service binding components, service components, and reference binding components. For more information about implementing policies, see Chapter 39, Enabling Security with Policies. Developing SOA Composite Applications with Oracle SOA Suite 2-25

2.7 Deploying a SOA Composite Application

Deploying the SOA composite application involves creating a connection to an Oracle WebLogic Server and deploying an archive of the SOA composite application to an Oracle WebLogic Server managed server. For more information about deploying SOA composite applications, see Chapter 40, Deploying SOA Composite Applications.

2.7.1 How to Invoke Deployed Composites

You can invoke other deployed SOA composite applications from your SOA composite application. The other applications must be deployed. To invoke other composites: 1. Create a web service or partner link through one of the following methods.

a. In the SOA Composite Editor, drag a Web Service from the Component

Palette to the External References swimlane. b. In Oracle BPEL Designer, drag a Partner Link from the Component Palette to the right swimlane.

2. Access the SOA Resource Browser dialog based on the type of service you created.

a. For the Create Web Service dialog, click the Find existing WSDLs icon.

b. For the Edit Partner Link dialog, click the SOA Resource Browser icon.

3. From the list at the top, select Resource Palette.

4. Expand the tree to display the application server connection to the Oracle

WebLogic Administration Server on which the SOA composite application is deployed.

5. Expand the application server connection.

6. Expand the SOA folder.

Figure 2–21 provides details. Figure 2–21 Browse for a SOA Composite Application 7. Select the composite service.

8. Click OK.

2.8 Managing and Testing a SOA Composite Application

As you build and deploy a SOA composite application, you manage and test it using a combination of Oracle JDeveloper and Oracle Enterprise Manager Fusion Middleware Control.