문제

Our company as a best practice creates Web Services using a Contract-First approach.

The WSDL is defined before the implementation is considered.

Is it possible to use such an approach using REST? I was thinking of using an XSD however calls are not generally XML! So how do you specify the contract in a machine interpretable way?

도움이 되었습니까?

해결책

Here you go, will this help you at all?

At their core, Web services define a mechanism for machine-to-machine interaction using a network and XML. A key component of a Web service is a formal description with Web Services Description Language (WSDL). Until recently there was no formal language to describe REpresentational State Transfer (REST) Web services—now there's WSDL 2.0. This article introduces you to REST and WSDL 2.0, and walks you through creating a WSDL 2.0 description of a REST Web service.

Reference: Describe REST Web services with WSDL 2.0

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top