Why doesn't REST utilize WSDLs, unlike SOAP?

前端 未结 3 1456
醉话见心
醉话见心 2020-12-23 15:02

For SOAP web services there is a specification which all request/responses must follow. This specification is in the form of a WSDL document. However for REST web services,

3条回答
  •  猫巷女王i
    2020-12-23 15:36

    SOAP is a protocol.
    REST is an architecture.

    In many references you will see REST and SOAP both mentioned as competitors. That is not true. SOAP is actually a protocol, not an architecture style. What REST can be compared against is SOA and RPC. All three are examples of web service styles, each with their own conceptual focus. RPC is focused around operations, SOA around messages, and REST around resources. (ref)

    So for SOAP, wrote WSDL document standards. But for REST there is not a standard document, but there is many the best practices be like http://jsonapi.org

提交回复
热议问题