cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Rest and OData ?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member87164
Active Contributor

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-...

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

Answers (0)