Publishing REST service using SOA SUITE 12.2.1.0.0

In this post we will see how to create restful services using SOA Suite 12.2.1.0.0

To achieve this we need to Create a empty project .

Now we have to create a schema to use in this example.

I have created the below schema for our process.

rest1After creating the schema right click on Exposed services and click on select REST.rest2

Now it will open a new window to configure REST Binding, give the name and click on Next Now click on + button in Methods section .

rest3rest4

Now it brings up the “Rest Method Definition” window, give the method name, HTTP verb and select Schema for request.

rest5

Go to response tab and select the schema for response, and click on OK to complete the rest setup.rest6

Click on Finish , it will creates the rest binding .

Now go to components tab and right click and create a BPEL process and provide the schema details for input and output .

Make sure you un select “SOAP binding”.rest7

Inside bpel process Assign some value to output variable and you are done with creating REST Binding service.

rest8

Deploy the SAR to server and TEST the results.

Advertisements

3 thoughts on “Publishing REST service using SOA SUITE 12.2.1.0.0

  1. Pingback: Invoke REST Services from SOA Suite 12.2.1.0.0 | Oracle SOA Blog

  2. Hi,

    I am getting below error while trying to test this webservice:

    Correlation definition not registered. The correlation set definition for operation UserGet, process default/REST!1.0*soa_f42e504e-763c-42ed-a93a-a3de284380e3/BPELProcess1, is not registered with the server.The correlation set was not defined in the process.Redeploy the process to the container

    I Tried to redeploy but still facing the same issue.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s