Rest vs soap

558 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
558
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Rest vs soap

  1. 1. EEDCExecution REST Vs SOAP, Why Use RESTEnvironments for Architecture for WebDistributed Services?ComputingEuropean Master in DistributedComputing, EMDC Homework number: 2 Personal number: EEDC-71 Ioanna Tsalouchidou – ioannatsalouchidou@gmail.com 1
  2. 2. Web Servicesmachine-to-machine communication SOAP - based HTTP - based 2
  3. 3. What is SOAP?Simple Object Access Protocol: Protocol specification for exchanging structured information in the implementation of Web Services  No specific encoding for the message body  Verbose XML format → considerably slower  Response caching difficult, POST-requests, complex XML 3
  4. 4. What is RESTREpresentation State Transfer: software architecture for distributed hypermedia systems as the World Wide Web  For REST everything is resources  Simple point-to-point communication over HTTP using XML 4
  5. 5. What is good about it ?Advantages:  Lightweight – not a lot of extra XML markup  Human Readable Results  Easy to build – no toolkits required  Scalability of components interactions  Generality of interfaces  Independent deployment of components 5
  6. 6. Key part 1Any HTTP client talks with any HTTP server  No further configuration needed  No need to know the method names 6
  7. 7. Key part 2Use of only four methods which are already supported by HTTP  GET  POST  PUT  DELETE 7
  8. 8. Which is preferred? 8
  9. 9. Which one is more lightweight ? REST Vs SOAP 9

×