What is the prefered method for a 'WSDL' for REST webservice?

前端 未结 5 1658
小鲜肉
小鲜肉 2021-02-02 03:33

I have build plenty of SOAP webservices, but am building a REST webservice for a specific project, and I was wondering what people used for a \'WSDL\' for REST services or if it

5条回答
  •  野性不改
    2021-02-02 04:14

    While Sam's correct that RESTful web applications don't need a direct analog to WSDL, there is an XML vocabulary that's useful for describing RESTful web apps: WADL, or Web Application Description Language. At my company we primarily use WADL to define a spec for a given service that we want to build - we don't generally use it programmatically. That said, the WADL home page includes some Java tools for code generation, and Restlet, the Java REST framework, includes a WADL extension for dynamically wiring applications based on WADL and dynamically generating WADL based on a wired application. I'm a fan of WADL, and recommend that you check it out.

提交回复
热议问题