By Jeff Davies-Oracle on Apr 28, 2011
I have recently posted 2 new samples for the Oracle Service Bus onto the Oracle Technical Network site. The first sample project is osb-205-SimpleREST and it shows how to fully implement a REST service using OSB. By "fully" I mean it shows how to implement the following HTTP verbs: GET, POST, PUT, DELETE, HEAD and OPTIONS using OSB.
Due to the nature of JSON, the osb-206-JSONREST sample really focuses on the GET and POST HTTP verbs (the ones easily executed from a web browser). With a little effort, you could easily create robust, production ready REST services thst are able to handle either XML or JSON payloads, depending on the Content-type HTTP header.
You can find all of the OSB samples at the SOA Suite sample site on OTN at: http://java.net/projects/oraclesoasuite11g/pages/OSB Just click on the OSB section on the left side of the page to see the OSB specific samples. The site also provides many samples for other components of the Oracle SOA Suite. It definitely worth a look.