SOAP vs REST (differences)

前端 未结 12 1978
忘了有多久
忘了有多久 2020-11-22 11:40

I have read articles about the differences between SOAP and REST as a web service communication protocol, but I think that the biggest advantages for REST over SOAP are:

12条回答
  •  北海茫月
    2020-11-22 12:05

    Difference between Rest and Soap

    SOAP

    1. SOAP is a protocol.
    2. SOAP stands for Simple Object Access Protocol.
    3. SOAP can't use REST because it is a protocol.
    4. SOAP uses services interfaces to expose the business logic.
    5. SOAP defines standards to be strictly followed.
    6. SOAP requires more bandwidth and resource than REST.
    7. SOAP defines its own security.
    8. SOAP permits XML data format only.
    9. SOAP is less preferred than REST.

    REST

    1. REST is an architectural style.
    2. REST stands for Representational State Transfer.
    3. REST requires less bandwidth and resource than SOAP.
    4. REST uses URI to expose business logic.
    5. REST does not define too much standards like SOAP.
    6. REST can use SOAP web services because it is a concept and can use any protocol like HTTP, SOAP.
    7. RESTful web services inherits security measures from the underlying transport.
    8. REST permits different data format such as Plain text, HTML, XML, JSON etc.
    9. REST more preferred than SOAP.

    For more Details please see here

提交回复
热议问题