Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Â
Eedc homework2-jsc
1. EEDC
34330
Execution
Environments for REST or SOAP?
Distributed
Computing
Master in Computer Architecture,
Networks and Systems - CANS
Homework number: 2
Josep Subirats Castell
(josep.subirats@bsc.es)
2. Table of Contents
ï§ Advantages of REST over SOAP
ï§ Disadvantages of REST over SOAP
ï§ So, REST or SOAP?
2
3. Advantages of REST over SOAP (1/2)
ï§ It uses the URI as interface and uses HTTP methods.
â SOAP requires specific knowledge of a new XML specification.
ï§ Simpler client side: only HTTP is required to access
a REST WS.
â SOAP requires the use of a specific toolkit libraries to form
requests and parse the results.
ï§ Requests and responses can be short (less traffic).
â SOAP requires an XML wrapper in each request and response.
3
4. Advantages of REST over SOAP (2/2)
ï§ Its messagesâ intent can be known by looking at the
used HTTP method in the request.
â SOAP always uses POST. Its Envelope must be examined (time
consuming) to know if it is meant to create/destroy data.
ï§ No need to worry about authentication and
authorization: web servers take care of these tasks.
â SOAP places this burden to the application developer.
ï§ Easier to test: only a browser is needed to generate
requests and visualize the responses.
4
5. Disadvantages of REST over SOAP
ï§ In REST, data types are not known ahead of time.
â A WSDL file can be writen defining input/output parameters/data.
ï§ SOAP is better when using attachments: it can
transport big texts and binaries easily.
â But itâs still easier and quicker when plain text strings
ï§ Increased server complexity: some methods may
require serialization of the output to XML.
â (De)Serialization is handed by the SOAP server library.
5
6. So, REST or SOAP?
ï§ REST is easier to build and lightweight.
ï§ REST servers harder to implement than SOAP.
ï§ REST clients simpler to implement than SOAP.
ï§ When hosting Web Services, itâs the client side
complexity what matters most in attracting clients to
use your Web Service.
6
Based on: http://geeknizer.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol/
* A short response can be 10 times bigger using SOAP.
* A short response can be 10 times bigger using SOAP.
A short response can be 10 times bigger using SOAP. Through the use of industry-standard certificates and a common identity management system, such as an LDAP server, developers can make the network layer do all the heavy lifting. AUTHENTICATION: industry-standard certificates AUTHORIZATION: common identity management system, such as an LDAP server