gpt4 book ai didi

design-by-contract - 如何使用 RESTful Web 服务按契约(Contract)编码

转载 作者:行者123 更新时间:2023-12-04 07:56:38 25 4
gpt4 key购买 nike

作为最佳实践,我们公司使用契约(Contract)优先的方法创建 Web 服务。

在考虑实现之前定义 WSDL。

是否可以通过 REST 使用这种方法?我正在考虑使用 XSD,但调用通常不是 XML!那么如何以机器可解释的方式指定合约呢?

最佳答案

给你,这对你有帮助吗?

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.

引用:Describe REST Web services with WSDL 2.0

关于design-by-contract - 如何使用 RESTful Web 服务按契约(Contract)编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9235307/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com