In
the previous part we understood how to set up OSB environment. In this Demo I
will explain how to create a REST OSB Proxy Service and Business Service.
Now
as the JDEVELOPER Studio Edition Version 12.2.1.4.0 and OSB Version 12.2.1.4.0 has
been setup, I will first create a Business Service. For this
DEMO I am not using any WADL, instead I will try to consume a REST API already
available – http://dummy.restapiexample.com/create
Step2:
Open the composite. Drag the REST Adapter to the External Services. Give name
as DummyRESTBS. Follow the screenshots below
Step3:
Generate a pipeline to connect to BusinessService. From the image above you can
find a WADL was already generated by OSB while creating the Business Service. Follow the steps below and ensure that the pipeline is exposed as a Proxy Service
Step4:
Connect Pipeline with the BusinessService
Step5:
Right Click on the ProxyService and click RUN. This will open the Test Console
for the proxy in the OSB integrated server. From the API the following use the
below payload for testing
{"name":"test","salary":"123","age":"23"}