cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

I want to consult the difference between ODATA and SOAP, and the usage of SOAP

Rachel1
Product and Topic Expert
Product and Topic Expert
0 Kudos
10,718

I want to consult the difference between ODATA and SOAP, and the usage of SOAP

Accepted Solutions (1)

Accepted Solutions (1)

Amith_Nair
Product and Topic Expert
Product and Topic Expert

Hi rachel.suo

While Webservices is based on SOAP protocol , OData is based on REST and Atom Protocol .

Consumption using Webservices would be tedious task and would need lots of efforts , You need to prepare XML request and response and While in OData , the URL purely takes care of everything.

You just need to build the underlying Entity Models and implement runtime classes

OData is widely accepted and in SAPUI5 the consumption of an OData service is at ease just by invoking the URL, while the same consumption using a webservice requires lots of implementation effort.Since Odata is light weight and can be used for CRUD operations

You may also find this blog useful for reference.

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

Thank you!

Amith Nair

Answers (3)

Answers (3)

Jelena_Perfiljeva
Active Contributor

This is an old post but it comes up on top of Google search when looking for "SOAP vs OData" in SAP domain. (I'm guessing because someone edited the post in 2024.)

Because of that, I'd like to add some corrections / clarifications to the answer that is currently listed as "Accepted".

1) It talks about "web services" as if it only applies to SOAP. But both SOAP and REST (which OData uses) are in general web services (see Wikipedia).

2) Both OData and SOAP rely on HTTP protocol (what doesn't these days? 🙂 ). SOAP can technically use SMTP but I've never seen an implementation like that in SAP space.

3) Historically, SOAP web services became available in SAP systems first. They were generated from the ABAP function modules and maintained in SOAMANAGER transaction. (Note that there is also SOA = Service-oriented architecture, this is not the same SOA as in SOAP, fun stuff.)

4) Even though SOAP services can still be used and developed, they went out of favor generally (not just in SAP) because REST-based OData services are less "bulky" and gained more adoption in IT outside of SAP. Also, latest ABAP programming model (ABAP RAP / ABAP Cloud) is focused on OData service development. Therefore this is usually the first (but not the only) choice for SAP integration.

Bottom line, it's not as simple as "SOAP = old = bad, OData = good" but in general, SOAP services are used much less these days.

SOAP, REST, and OData are not SAP terms. I'd encourage to read the general information about these (e.g. wiki articles linked here) to become familiar with terminology in general.

Cheers!

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "of"

Strategy

Cloud Availability Center is a personalized dashboard with an at-a-glance view into the status of your cloud products; SAP Support Portal, your one stop shop for ?...

https://support.sap.com/en/offerings-programs/strategy.html

SAP Enterprise Support

Cloud Editions of SAP Enterprise Support. The SAP Enterprise Support, cloud editions offering is our foundational success plan included with any cloud?...

https://support.sap.com/en/offerings-programs/enterprise-support.html

License Utilization Information

overview of SAP License Entitlement and SAP Software Usage for SAP Public Cloud and for SAP S/4HANA On-Premise customers.

https://support.sap.com/en/my-support/systems-installations/license-utilization-information.html

former_member132363
Active Contributor
0 Kudos

Here are some SAP resources you may review based on your topic "of"

Strategy

Cloud Availability Center is a personalized dashboard with an at-a-glance view into the status of your cloud products; SAP Support Portal, your one stop shop for ?...

https://support.sap.com/en/offerings-programs/strategy.html

SAP Enterprise Support

Cloud Editions of SAP Enterprise Support. The SAP Enterprise Support, cloud editions offering is our foundational success plan included with any cloud?...

https://support.sap.com/en/offerings-programs/enterprise-support.html

License Utilization Information

overview of SAP License Entitlement and SAP Software Usage for SAP Public Cloud and for SAP S/4HANA On-Premise customers.

https://support.sap.com/en/my-support/systems-installations/license-utilization-information.html