Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为最佳实践,我们公司使用合同优先方法创建 Web 服务。
WSDL 是在考虑实现之前定义的。
是否可以使用 REST 使用这种方法?我正在考虑使用 XSD,但是调用通常不是 XML!那么如何以机器可解释的方式指定合约呢?
给你,这对你有帮助吗?
Web 服务的核心是使用网络和 XML 定义机器对机器交互的机制。Web 服务的一个关键组件是使用 Web 服务描述语言 (WSDL) 的正式描述。直到最近,还没有正式的语言来描述 REpresentational State Transfer (REST) Web 服务——现在有了 WSDL 2.0。本文向您介绍 REST 和 WSDL 2.0,并引导您创建 REST Web 服务的 WSDL 2.0 描述。
参考:使用 WSDL 2.0 描述 REST Web 服务