Tuesday 12 November 2013

Exposing BPEL Service as HTTP service In Oracle SOA 11g

Hi Folks .

Now I am going to explain about BPEL service expose as a HTTP service.

Actually the BPEL service would invoke from SOAP service .It can not accept REST request or HTTP request because it does not contains the SOAP headers etc. So we will go in another approach to expose the BPEL service as a HTTP service to accept the request from HTTP client.

Below are the steps to expose the BPEL service as HTTP service:-

1.Create an empty BPEL process
2.Create the desired schema.


2.Drag n drop a HTTP Binding Adapter into Exposed services.


3.Give service name.


 4.Give interface as "Define from operation and schema(specified later)"


5. Select the options as shown below.


6.Browse the Request Message schema  and Reply Message schema from the Type chooser



7.Once you completed the configuration of HTTP binding you can see the below screen.


8.Drag n drop a BPEL component to Components and select the options like below screen.
   Do not expose as a SOAP service



9.The Composite looks like the below.

10.Drag n drop a Webservice in External References -Give the Concrete WSDL on which BPEL process           you are going to expose as a HTTP service.


11.Finally the composite design is completed.Looks like the below screenshot.


12.Open the BPEL-Add a Invoke activity in between Receive and Reply.


13.Edit Invoke as below.


14.Wire it to Reference web service.


15.Add transformations to Transform the Request and Response message from SOAP  to HTTP vice-versa.

 16.Edit the transformation like below.

 17.Map the corresponding elements to the desired format.


18.Yooo--- The BPEL design is completed successfully.
 19.Finally Deploy it to WebLogic server .Test it from UI or Adavnced REST Client - Its a Google chrome         extension which  allow you to test the Webservice.


Done... Happy learning.-----

No comments:

Post a Comment