Quantcast
Viewing latest article 11
Browse Latest Browse All 12

Oracle SOA Suite Development: REST in SOA 12c

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

Image may be NSFW.
Clik here to view.
Step 1 to create REST

Step 2: Select SOA Project and Click Ok.

Image may be NSFW.
Clik here to view.
Step 2 to create REST

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

Image may be NSFW.
Clik here to view.
Name the project

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

Image may be NSFW.
Clik here to view.
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

Image may be NSFW.
Clik here to view.
Step 5 to create REST

Step 6: BPEL component gets configured.

Image may be NSFW.
Clik here to view.
BPEL component gets configured.

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

Image may be NSFW.
Clik here to view.
Right Click on the inbound arrow on the bpel

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

Image may be NSFW.
Clik here to view.
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.

Image may be NSFW.
Clik here to view.
Step 9 to create REST

Step 10: Click on edit button on Operation Bindings.

Image may be NSFW.
Clik here to view.
Click on edit button on Operation Bindings.

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

Image may be NSFW.
Clik here to view.
HTTP Verb and XML as payload

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

Image may be NSFW.
Clik here to view.
Resources and Operation Bindings gets configured

Step 13: BPEL component gets exposed as REST Service.

Image may be NSFW.
Clik here to view.
BPEL component gets exposed as REST Service

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

Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.
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.

Join Community

Join 3500+ Oracle Professionals like you to discuss Oracle Weblogic Server, Ask Questions or Help Others in Private Facebook Group for Oracle SOA Dev

If you are looking for the commonly asked interview questions for Oracle SOA Suite Development, then Click on the Image Below and receive them in your Inbox right away!Image may be NSFW.
Clik here to view.

 

The post Oracle SOA Suite Development: REST in SOA 12c appeared first on Oracle Trainings.


Viewing latest article 11
Browse Latest Browse All 12

Trending Articles