Skip to Content
0

Difference between Rest and OData ?

Nov 14, 2017 at 09:38 AM

386

avatar image

1.What iare the major Difference between Odata and Rest web service ?

2. Is Odata is Web service ?

3.Why we use Odata ?

Thanks in Advance

Balreddy

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Keshav Harake Nov 14, 2017 at 10:17 AM
1

Hi Bala,

Here difference in C4C is WSDL is based SOAP UI based and OData is similar to REST API's based if you want to Run or test WSDL than use SOAP UI tool and if you want to run/ test OData use Advacne Rest Client or any REST Tool to execute it.

As per my knowledge :

OData is display result in JSON or XML format.

WSDL is display result in XML format

You can use standard OData and you can create custom OData from front-end "Service Explorer"

FYI

https://blogs.sap.com/2015/03/30/soap-rest-based-webservices-what-are-they-when-to-use-each-of-them-or-use-both/

REST is a generic design technique used to describe how a web service can be accessed. Using REST you can make http requests to get data. If you try it in your browser it would be just like going to a website except instead of returning a web page you would get back XML. Some services will also return data in JSON format which is easier to use with Javascript.

OData is a specific technology that exposes data through REST.

If you want to sum it up real quick, think of it as:

  • REST - design pattern
  • OData - enabling technology

REST - is an architecture of how to send messages over HTTP.

OData V4- is a specific implementation of REST, really defines the content of the messages in different formats (currently I think is AtomPub and JSON). ODataV4 follows rest principles.

BR,

Keshav

Share
10 |10000 characters needed characters left characters exceeded