Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why use SOAP for webservices?

Tags:

People also ask

What is the purpose of SOAP in a Web service?

SOAP (Simple Object Access Protocol) is a message protocol that enables the distributed elements of an application to communicate. SOAP can be carried over a variety of standard protocols, including the web-related Hypertext Transfer Protocol (HTTP).

Why do we use SOAP instead of REST?

SOAP provides the following advantages when compared to REST: Language, platform, and transport independent (REST requires use of HTTP) Works well in distributed enterprise environments (REST assumes direct point-to-point communication) Standardized.

When should I use SOAP service?

A general rule of thumb when you're deciding between SOAP and REST for building your API: if you want standardization and enhanced security, use SOAP. If you want flexibility and efficiency, use REST.

Is SOAP better than REST API?

SOAP requires more bandwidth, whereas REST requires fewer resources (depending on the API) There's a little more overhead with SOAP out of the gate because of the envelope-style of payload transport. Because REST is used primarily for web services, its being lightweight is an advantage in those scenarios.


I have read a tutorial "web-service-php-mysql-xml-json".

It seems everything is ok. But then why we should use soap for web services?