RESTful Services - WSDL Equivalent

后端 未结 8 933
我在风中等你
我在风中等你 2020-11-28 21:04

I have been reading about REST and SOAP, and understand why implementing REST can be beneficial over using a SOAP protocol. However, I still don\'t understand why there isn

8条回答
  •  青春惊慌失措
    2020-11-28 21:25

    WSDL describes service endpoints. REST clients should not be coupled to server endpoints (i.e. should not be aware of in URLs in advance). REST clients are coupled on the media-types that are transfered between the client and server.

    It may make sense to auto generate classes on the client to wrap around the returned media-types. However, as soon as you start to create proxy classes around the service interactions you start to obscure the HTTP interactions and risk degenerating back towards a RPC model.

提交回复
热议问题