EEDC
Execution
                                       REST Vs SOAP,
                                       Why Use REST
Environments for                     Architecture for Web
Distributed                               Services?
Computing
European Master in Distributed
Computing, EMDC
                                        Homework number: 2
                                      Personal number: EEDC-71


                                         Ioanna Tsalouchidou –
                                     ioannatsalouchidou@gmail.com




                                 1
Web Services


machine-to-machine communication


    SOAP - based


    HTTP - based




                           2
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
What is REST

REpresentation 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
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
Key part 1


Any HTTP client talks with any HTTP server

      
          No further configuration needed

      
          No need to know the method names




                                6
Key part 2

Use of only four methods which are already supported by
  HTTP

    
        GET
    
        POST
    
        PUT
    
        DELETE




                            7
Which is preferred?




                      8
Which one is more lightweight ?




      REST        Vs
                            SOAP


                   9

Rest vs soap

  • 1.
    EEDC Execution REST Vs SOAP, Why Use REST Environments for Architecture for Web Distributed Services? Computing European Master in Distributed Computing, EMDC Homework number: 2 Personal number: EEDC-71 Ioanna Tsalouchidou – ioannatsalouchidou@gmail.com 1
  • 2.
  • 3.
    What is SOAP? SimpleObject 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.
    What is REST REpresentationState 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.
    What is goodabout 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.
    Key part 1 AnyHTTP client talks with any HTTP server  No further configuration needed  No need to know the method names 6
  • 7.
    Key part 2 Useof only four methods which are already supported by HTTP  GET  POST  PUT  DELETE 7
  • 8.
  • 9.
    Which one ismore lightweight ? REST Vs SOAP 9