What is the point in a WSDL with a rest based service?

后端 未结 3 486
感情败类
感情败类 2021-01-18 15:57

If REST based web services are as simple as GETing and POSTing to a url and parsing the response wht exactly do we need a wsdl? Whats the point. I understand that when using

3条回答
  •  暖寄归人
    2021-01-18 16:43

    WSDL is designed to allow clients to discover service capabilities, primarily at design time. REST has the hypermedia constraint that requires that all service capabilities should be discoverable at runtime via the linked representations that they return.

    Proper REST services are naturally discoverable therefore there is no need for a WSDL specification in addition.

提交回复
热议问题