You are on page 1of 15

Skip to Content

Oracle

Creating a SOA Composite Application


with Oracle JDeveloper 12c


Before You Begin


Purpose
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
30 minutes

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?


 Oracle SOA Suite Quick Start for Developers
 Basic knowledge of Oracle JDeveloper

Creating a SOA Application


1. Open Oracle JDeveloper 12c, click the Applications tab, and select New
Application.
View Image
Description of this image

The New Gallery page appears.


2. On the New Gallery page, select SOA Application, and click OK.
Description of this image

3. On the Create SOA Application - Step 1 of 3 page, in the Application Name field,
enter SOACSdemo and click Next.
Description of this image

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.
Description of this image

5. On the Create SOA Application - Step 3 of 3 page, from the Project SOA
Settings list, select Empty Composite and click Finish.
Description of this image

Wait until the application creation and configuration are complete.


On the Applications tab, you can examine the created SOACSdemo application
files.

Description of this image

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).

Description of this image

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.

Description of this image

Wait until the BPEL and SOAP Service components are created.
On the SayHello page, you can examine
the MakeGreeting and makegreeting_client_ep components.

Description of this image

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.

Description of this image

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.

Description of this image

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.

Description of this image

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.

Description of this
image

The Edit Assign page appears.


2. On the Edit Assign page, click the Expression icon.
Description of this image

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.

Description of this image


Note: You can also drag and drop the concat function to the Expression text area.
On the Expression panel, the concat() function appears.

Description of this image

4. On the Expression panel, between the parentheses of the function enter 'Hello ',.

Description of this image

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.
View Image
Description of this image

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.
Description of this image

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.
Description of this image

The function wires(connects) the client: input string from the inputVariable and
the client:result string from the outputVariable.

Description of this image

8. On the Edit Assign page, select the General tab, in the Name field
enter Assign_Greeting, and click OK.
Description of this image

The Edit Assign page closes and the MakeGreeting.bpel page appears again.
Verify your MakeGreeting.bpel page contains the Assign activity.

Description of this image

9. On the main menu of Oracle JDeveloper, click Save All.


View Image
Description of this image

The SayHello project is ready for deployment. You learn how to deploy the
application in the next OBE.

Want to Learn More?


 In the Oracle Help Center: Creating a SOA Application
 In the Oracle Help Center: BPEL process creation
 Deploying SOA Composite Applications to Oracle SOA Suite Cloud Service

Credits
 Lead Curriculum Developer: Armando Hernandez
 Other Contributors: Ron Pinkerton

 About Oracle

 Contact Us

 Legal Notices

 Terms of Use

 Your Privacy Rights

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.


Back to top

You might also like