SlideShare uma empresa Scribd logo
1 de 7
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)
Table of Contents


 Advantages of REST over SOAP

 Disadvantages of REST over SOAP

 So, REST or SOAP?



                      2
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
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
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
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
Questions?




             7

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Splitters in mule
Splitters in muleSplitters in mule
Splitters in mule
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in mule
 
Mule esb mule message
Mule esb   mule messageMule esb   mule message
Mule esb mule message
 
The routing message processor scatter gather
The routing message processor scatter gatherThe routing message processor scatter gather
The routing message processor scatter gather
 
Using spring scheduler mule
Using spring scheduler muleUsing spring scheduler mule
Using spring scheduler mule
 
Mule Quartz connector
Mule Quartz connectorMule Quartz connector
Mule Quartz connector
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Runing batch job in mule
Runing batch job in muleRuning batch job in mule
Runing batch job in mule
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Soap request in mule
Soap request in mule Soap request in mule
Soap request in mule
 
Mulesoft vm transport reference
Mulesoft vm transport referenceMulesoft vm transport reference
Mulesoft vm transport reference
 
Validating a soap request in mule
Validating a soap request in muleValidating a soap request in mule
Validating a soap request in mule
 
Using spring task scheduler in java in mule
Using spring task scheduler in java in muleUsing spring task scheduler in java in mule
Using spring task scheduler in java in mule
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Message structure
Message structureMessage structure
Message structure
 
Mule slides for beginers
Mule slides for beginersMule slides for beginers
Mule slides for beginers
 
Message queues
Message queuesMessage queues
Message queues
 
Introduction to mule esb
Introduction to mule esbIntroduction to mule esb
Introduction to mule esb
 
Mule servlet connector
Mule servlet connectorMule servlet connector
Mule servlet connector
 
Arch andmodulesmule
Arch andmodulesmuleArch andmodulesmule
Arch andmodulesmule
 

Destaque

Ita b2 17 4-2013
Ita b2 17 4-2013Ita b2 17 4-2013
Ita b2 17 4-2013
SpaanIt
 
Ita a2 ms 11 9-2013
Ita a2 ms 11 9-2013Ita a2 ms 11 9-2013
Ita a2 ms 11 9-2013
SpaanIt
 
Ali CV Formate 1
Ali CV Formate 1Ali CV Formate 1
Ali CV Formate 1
Ali Nawaz
 

Destaque (17)

Ita b2 17 4-2013
Ita b2 17 4-2013Ita b2 17 4-2013
Ita b2 17 4-2013
 
Kandava
KandavaKandava
Kandava
 
Convidados de pedra
Convidados de pedraConvidados de pedra
Convidados de pedra
 
Consejos cardiosaludables
Consejos cardiosaludables Consejos cardiosaludables
Consejos cardiosaludables
 
First Get Good
First Get GoodFirst Get Good
First Get Good
 
23 fevralya
23 fevralya23 fevralya
23 fevralya
 
Fibra
FibraFibra
Fibra
 
Ita a2 ms 11 9-2013
Ita a2 ms 11 9-2013Ita a2 ms 11 9-2013
Ita a2 ms 11 9-2013
 
Rape as Instrument of War
Rape as Instrument of WarRape as Instrument of War
Rape as Instrument of War
 
Bases legales correcto
Bases legales correctoBases legales correcto
Bases legales correcto
 
Ejercicios excel
Ejercicios excelEjercicios excel
Ejercicios excel
 
Les compléments circonstanciels
Les compléments circonstancielsLes compléments circonstanciels
Les compléments circonstanciels
 
Historia general de la educacion
Historia general de la educacionHistoria general de la educacion
Historia general de la educacion
 
Ali CV Formate 1
Ali CV Formate 1Ali CV Formate 1
Ali CV Formate 1
 
Otter Paper
Otter PaperOtter Paper
Otter Paper
 
Tipos de argumentos
Tipos de argumentosTipos de argumentos
Tipos de argumentos
 
Cambios sociales en la adolescencia
Cambios sociales en la adolescenciaCambios sociales en la adolescencia
Cambios sociales en la adolescencia
 

Semelhante a Eedc homework2-jsc

Rest vs soap
Rest vs soapRest vs soap
Rest vs soap
Naseers
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
Neil Ghosh
 

Semelhante a Eedc homework2-jsc (20)

Rest vs soap
Rest vs soapRest vs soap
Rest vs soap
 
53 hui homework2
53 hui homework253 hui homework2
53 hui homework2
 
Restful web services by Sreeni Inturi
Restful web services by Sreeni InturiRestful web services by Sreeni Inturi
Restful web services by Sreeni Inturi
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
 
Mobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValueMobility Information Series - Webservice Architecture Comparison by RapidValue
Mobility Information Series - Webservice Architecture Comparison by RapidValue
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
 
Unit 2
Unit 2Unit 2
Unit 2
 
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Sending mail,web services
Sending mail,web servicesSending mail,web services
Sending mail,web services
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
Web Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris WhitepaperWeb Service Interaction Models | Torry Harris Whitepaper
Web Service Interaction Models | Torry Harris Whitepaper
 
Future Internet
Future InternetFuture Internet
Future Internet
 
REST and Microservices
REST and MicroservicesREST and Microservices
REST and Microservices
 
Soap xp-wg
Soap xp-wgSoap xp-wg
Soap xp-wg
 
Ftp servlet
Ftp servletFtp servlet
Ftp servlet
 
soap toolkit
soap toolkitsoap toolkit
soap toolkit
 
Mini-Training: Let's have a rest
Mini-Training: Let's have a restMini-Training: Let's have a rest
Mini-Training: Let's have a rest
 

Último

Último (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

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

Notas do Editor

  1. Based on: http://geeknizer.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol/
  2. * A short response can be 10 times bigger using SOAP.
  3. * A short response can be 10 times bigger using SOAP.
  4. 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