SOAP vs REST

SOAP vs. REST comparison table

Although REST is very popular these days, SOAP still has its place in the world of web services. To help you choose between them, here’s a comparison table of SOAP and REST, that highlights the main differences between the two API styles:
 SOAPREST
MeaningSimple Object Access ProtocolRepresentational State Transfer
DesignStandardized protocol with pre-defined rules to follow.Architectural style with loose guidelines and recommendations.
ApproachFunction-driven (data available as services, e.g.: “getUser”)Data-driven (data available as resources, e.g. “user”).
StatefulnessStateless by default, but it’s possible to make a SOAP API stateful.Stateless (no server-side sessions).
CachingAPI calls cannot be cached.API calls can be cached.
SecurityWS-Security with SSL support. Built-in ACID compliance.Supports HTTPS and SSL.
PerformanceRequires more bandwidth and computing power.Requires fewer resources.
Message formatOnly XML.Plain text, HTML, XML, JSON, YAML, and others.
Transfer protocol(s)HTTP, SMTP, UDP, and others.Only HTTP
Recommended forEnterprise apps, high-security apps, distributed environment, financial services, payment gateways, telecommunication services.Public APIs for web services, mobile services, social networks.
AdvantagesHigh security, standardized, extensibility.Scalability, better performance, browser-friendliness, flexibility.
DisadvantagesPoorer performance, more complexity, less flexibility.Less security, not suitable for distributed environments.

Comments

Post a Comment

Popular posts from this blog

Difference between Route, Service Callout, Publish

OSB actions in proxy service

XQuery functions that supported by OSB