Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Odata support in OSB 12c

3210294Jan 20 2017 — edited Jan 23 2017

Hi Everyone,

I was wondering if OData is supported in OSB 12c, To my knowledge OData is a standard that defines to build and consume REST services. Will it be supported in current OSB release? I tried creating one REST reference and test it by hitting one public service URL which is build up on OData : GET http://services.odata.org/v4/TripPinServiceRW/People. This results in error in business service, which made me think whether OSB supports this protocol.

Any help or pointers over here?

Regards,

Vaibhav

This post has been answered by AnatoliAtanasov on Jan 20 2017
Jump to Answer

Comments

AnatoliAtanasov
Answer

Hi Vaibhav,

just created a business service pointing to http://services.odata.org/v4/TripPinServiceRW/People. After running the business service from JDev I can see the following error: "REST Business Service returned HTTP response with status 302." saying that I have to redirect to http://services.odata.org/v4/(S(2bcr10wb1l5mupgxs3oy3buh))/TripPinServiceRW/People. I am not an expert in OData format and protocol, but it looks like a security or session identifier the string in the brackets (S(2bcr10wb1l5mupgxs3oy3buh)).

If you try to create a business service and in the target URL this code is present then you can successfully invoke the service and get the JSON response encoded in SOAP. Hence, use it further in message pipeline processing.

The solution here is to enable the business service to follow HTTP redirects if you do not want to hardcode that key/identifier in your target URL.

To enable a business service to follow HTTP redirects check the documentation - https://docs.oracle.com/cd/E23943_01/dev.1111/e15866/http_poller.htm#OSBDV951 . It works for 12c as well.

I used 12.1.3 and works fine. In 12.2.1 you have native support for REST, i.e. the REST is not internally and always converted to SOAP so the solution should work there as well.

HTH,

A.

Marked as Answer by 3210294 · Sep 27 2020
3210294

Thanks Anatoli, you are right , somehow i missed '302' error code as i was more more eagerly looking at Odata. I believe there is no need for a separate support for OData as these are RESTFul APIs only.

Regards,

Vaibhav

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 20 2017
Added on Jan 20 2017
2 comments
521 views