Oracle SOA Suite Development

REST
Oracle

Share Post Now :

HOW TO GET HIGH PAYING JOBS IN AWS CLOUD

Even as a beginner with NO Experience Coding Language

Explore Free course Now

Table of Contents

Loading

In this post, we are going to cover What is REST in SOA 12c and Steps to Create REST in SOA 12c which is one of the new features in SOA 12c. For those who are new, REST stands for Representational State Transfer.

What is REST in SOA 12c:

REST is an Architectural style in which a web service can only be treated as a RESTful service if it follows the constraints of being

  1. Client-Server
  2. Stateless
  3. Cacheable
  4. Layered System
  5. Uniform Interface

In SOA 12c we can develop and integrate external REST API’s that supports XML, JSON and URL-encoded GET/POST data support.

Steps to create a REST Service in SOA 12c:

Step 1: Create a new Project in Jdeveloper. Go to File—>New —>Project

Oracle SOA Suite Development: REST in SOA 12c

Step 2: Select SOA Project and Click Ok.

Oracle SOA Suite Development: REST in SOA 12c

Step 3: Name the project as per your context and hit finish button.

Name the project

Step 4: Right click on Components lane and select the component BPEL Process.

Step 4 to create REST

Step 5: Give the appropriate name to the BPEL Process and enter following details:

  1. Template Type: Web Service
  2. Uncheck Expose as a SOAP Service Radio button

Step 5 to create REST

Step 6: BPEL component gets configured.

BPEL component gets configured.

Step 7: Right Click on the inbound arrow on the bpel and choose the option Expose as REST

Right Click on the inbound arrow on the bpel

Step 8: Name the REST binding as per convention. Click on Next.

Name the REST binding

Step 9: Configure the Resources. In the Resource Path click on edit button and enter resource name as shown below and click on ok.

Step 9 to create REST

Step 10: Click on edit button on Operation Bindings.

Click on edit button on Operation Bindings.

Step 11: Select POST as HTTP Verb and XML as payload. Click on ok.

HTTP Verb and XML as payload

Step 12: Resources and Operation Bindings gets configured. Click finish button.

Resources and Operation Bindings gets configured

Step 13: BPEL component gets exposed as REST Service.

BPEL component gets exposed as REST Service

Step 14: Double click on the bpel component and add an assign activity after

Step 15: Double click on assign activity and perform mapping between output variable element and input variable element. Click on Apply and Ok.

Assigning Activity

Step 16: Deploy the project and test it on em console or postman.

So, this is all about the What is REST in SOA 12c and Steps to create REST in SOA 12c .


We cover this in one of the modules of our 
Oracle SOA Dev where we also cover Develop SOA Composite, Orchestration, Managing and Monitoring Composite Applications, Fault Handling, DVM & MDS, JCA Adapters, Mediator, Business Rule Component and much more interesting and latest features in SOA 12C.

Did You Find this Blog useful?

Leave a Comment.

Some Interesting Topics in SOA Dev:

  • [Video] Oracle SOA Suite Development: Meta Data Service (MDS) Click here
  • [Video] Oracle SOA Suite Development: Domain Value Map (DVM) Click here
  • [Blog]Error Hospital in Oracle SOA Suite 12C Click here
  • Enterprise Manager Partition in Oracle SOA Suite 12c/11g Click here
  • Subprocess in Oracle SOA Suite 12C Click here
  • Templates in SOA 12c Click here

If You’ve not looked at Our Oracle SOA Suite Development Workshop & want to check what we cover in the Workshop then check here & Step By Step Hands-On Activity Guide we cover in Training.
If You’ve not a part of our Oracle SOA Suite Development Workshop & want to check what we cover in the Workshop then check here & Step By Step Hands-On Activity Guide we cover in Training.

Next Task for you:

Want to move ahead in your career and want to get a higher Earning Job?
Get 7+ Courses for DBAs & Apps DBA in a bundle program and learn from the Industry’s best Experts.

Oracle Bundle Training

Picture of mike

mike

I started my IT career in 2000 as an Oracle DBA/Apps DBA. The first few years were tough (<$100/month), with very little growth. In 2004, I moved to the UK. After working really hard, I landed a job that paid me £2700 per month. In February 2005, I saw a job that was £450 per day, which was nearly 4 times of my then salary.