Creating a SOA Composite Application with Oracle JDeveloper 12c

This Oracle by Example (OBE) tutorial shows you how to develop a HelloWorld composite application from start to finish in Oracle SOA Suite 12c.

Time to Complete

Background

Oracle SOA Suite provides an enterprise architecture that supports building connected enterprise applications to provide solutions to business problems.

Using Oracle SOA Suite, you can create, manage, and orchestrate services into composite applications and business processes. You can then easily assemble multiple technology components into one SOA composite application.

A SOA composite application is an assembly of services, service components, and references designed and deployed in a single application. Connections(wiring) between the services, service components, and references enable message communication. The details for a composite are stored in the composite.xml file.

Context

This is the second tutorial of a series that shows you how to install Oracle SOA Suite 12c, develop a HelloWorld application from the beginning, and deploy an application locally and to the cloud.

What Do You Need?

Creating a SOA Application

  1. Open Oracle JDeveloper 12c, click the Applications tab, and select New Application.The New Gallery page appears.
  2. On the New Gallery page, select SOA Application, and click OK.
  3. On the Create SOA Application - Step 1 of 3 page, in the Application Name field, enter SOACSdemo and click Next.
  4. On the Create SOA Application - Step 2 of 3 page, in the Project Name field, enter SayHello . In the Project Features section, select SOA Suite and click Next.
  5. On the Create SOA Application - Step 3 of 3 page, from the Project SOA Settings list, select Empty Composite and click Finish.Wait until the application creation and configuration are complete. On the Applications tab, you can examine the created SOACSdemo application files.

Adding a BPEL Process

  1. On the SayHello page, drag and drop a BPEL Process component from the Components panel to the Components swimlane(colum). The Create BPEL Process page appears.
  2. On the Create BPEL Process page, in the Name field enter MakeGreeting , from the Template list select Synchronous_BPEL Process, and then click OK.Wait until the BPEL and SOAP Service components are created. On the SayHello page, you can examine the MakeGreeting and makegreeting_client_ep components.

Editing a BPEL Process

Adding an Assign Activity

After you've added the BPEL process, you edit it to add the Assign activity using the following instructions:

  1. On the SayHello page, right-click the MakeGreeting BPEL component and select Edit.The MakeGreeting.bpel page appears.
  2. On the MakeGreeting.bpel page, from the Basic Activities panel, drag and drop the Assign activity to the Main Process sequence, between receiveInput and replyOutput.Wait until the Assign activity is added to the Main Process sequence. On the MakeGreeting.bpel page, you can examine the Assign activity. By default it has the Assign1 name and shows a warning.

Editing an Assign Activity

After you've added the Assign activity, you can edit it to build the output message using the following instructions:

  1. On the MakeGreeting.bpel page, right-click the Assign1 activity and select Edit.The Edit Assign page appears.
  2. On the Edit Assign page, click the Expression icon. The Expression Builder page appears.
  3. On the Expression Builder page, in the String Functions panel, select the concat function and then click Insert Into Expression.Note: You can also drag and drop the concat function to the Expression text area. On the Expression panel, the concat() function appears.
  4. On the Expression panel, between the parentheses of the function enter 'Hello ', .
  5. On the Expression panel, leave the cursor active after the comma. Expand inputVariable, payload, and client: process under the BPEL Variables panel, select client:input string, and click Insert Into Expression.Note: You can also drag and drop the client:input String to the Expression text area.
  6. On the Expression panel, verify your expression, and click OK.The Edit Assign page appears with the function added into the Drag panel.
  7. On the right side panel of the Edit Assign page, expand the outputVariable client:MakeGreetingResponseMessage(x), payload, and client:processResponse, and then drag and drop the function to the client:result string.The function wires(connects) the client: input string from the inputVariable and the client:result string from the outputVariable.
  8. On the Edit Assign page, select the General tab, in the Name field enter Assign_Greeting , and click OK.The Edit Assign page closes and the MakeGreeting.bpel page appears again. Verify your MakeGreeting.bpel page contains the Assign activity.
  9. On the main menu of Oracle JDeveloper, click Save All.The SayHello project is ready for deployment. You learn how to deploy the application in the next OBE.

Want to Learn More?

Credits