Wednesday 28 September 2016

HOW TO CONSUME REST WEBSERVICE IN ORACLE SOA 12c
(REST ADAPTER IN SOA 12c)

1.Create a SOA Project named RESTInvoke



2.Create a Synchronous BPEL process




3.Drag and drop the REST Adapter into the external References




4.Give the name for Rest Reference and choose the appropriate option



5.Enter the Base URI and the resource path of your Rest WebService






6.Create Methods to invoke the WebService



7.Give name for the method,choose the resource path and then choose the operation that you are going to perform.Here I have used GET method.



8.Create URI parameters for the request.




9.Give name for the parameter and choose the style for the parameter.There are two Styles available.

#QUERY parameters are the most common type of parameter, which is appended to the path of the URL when submitting a request.

#  TEMPLATE parameters are a flexible way of parameterizing the actual path of the request.

I have selected query parameter.We can specify the default value also.I have given 77 as the default value.







10.Click finish to complete the rest configuration wizard.





11.Create a wire between BPEL and Rest Adapter



12.Create two json Variables for Invoke input and Invoke Output







13.Drag and drop the invoke activity.




14.Create a wire between invoke and RestReference




15.Choose the method that we are going to invoke and choose the input and output variables.






16.Map the input variables.





17.Map the Output Variables.







18.Now you can deploy and test the Service.











20 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks for your appreciation

    ReplyDelete
  3. It is very good blog and useful for students

    Oracle SOA Online Training

    ReplyDelete
  4. Hi, I need to call rest adapter with authorization. How do i send authorization in this case?

    ReplyDelete
    Replies
    1. Hi Rafael,
      You can configure the OWSM security policy over the rest adapter. Example oracle/wss_http_token_client_policy use this policy to invoke the secured webservice. If still you have doubts you can contact me over my mail "aravindcse47@gmail.com"

      Delete
  5. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingmulesoft online training

    ReplyDelete
  6. This post is really insightful; it has helped me understand so many things. we are best Digital signature provider in Delhi

    Make My Digital Signature

    ReplyDelete
  7. Thanks a lot for sharing a great blog with a lot of information bout ORACLE keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.

    https://smconsultant.com/training/oracle-fusion-middleware/oracle-soa-training/

    ReplyDelete
  8. Thanks a lot for sharing a great blog with a lot of information about ORACLE keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.
    Oracle SOA Training
    Oracle SOA 12c Training
    Oracle soa online training
    Oracle soa course
    oracle soa suite training

    ReplyDelete
  9. Thanks a lot for sharing a valuable blog on Oracle SOA Training. I was browsing through the internet looking for Oracle SOA Training and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can find more information about Oracle SOA by attending Oracle SOA Training. You can learn about interview questions by visiting fusion Interview Questions

    ReplyDelete
  10. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle SOA Interview Questions and Answers
    . Actually, I was looking for the same information on internet for
    Oracle SOA Training and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle SOA Tutorial also.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. First of all thanks to the blogger for sharing and giving useful information. Online Digital Signature in Delhi

    ReplyDelete
  13. Very useful information regarding blog commenting. Thanks for sharing. Online Digital Signature in Noida

    ReplyDelete
  14. Awesome article on blog commenting, keep the good work Thank you.Apply Digital Signature in Online

    ReplyDelete
  15. Awesome article on blog commenting, keep the good work Thank you.Digital Signature in India

    ReplyDelete
  16. Awesome article on blog commenting, keep the good work Thank you. Digital Signature In Noida

    ReplyDelete
  17. Great article!! I am also using drop my link, it is very helpful in making back links.Digital Signature in Faridabaf

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete