[英]How can we identify SOAP/REST services by design?
There are number of resources available on line, but I would like to hear a clear idea, on how we can differentiate a service as SOAP/REST by looking at service design? 在线上有很多可用资源,但是我想听到一个明确的想法,即如何通过查看服务设计来区分服务是SOAP / REST还是? (not with wsdl/wadl) (不适用于wsdl / wadl)
How they differ in the architecture? 它们在架构上有何不同?
As an experienced user, you have probably read all the technical answers to similar questions already, such as this and this , so I will try a different kind of answer, a more metaphorical one. 作为有经验的用户,您可能已经阅读了类似问题的所有技术答案, 例如this和this ,因此我将尝试另一种答案,比喻更隐喻。
Indeed, we can rephrase the REST vs SOAP debate, by looking at what is the main notion for each of them: 的确,我们可以通过看看REST 和 SOAP的主要概念来改写REST 与 SOAP的争论:
As an example, let's consider a book delivery service: 例如,让我们考虑一本书交付服务:
With SOAP, you are defining endpoints for actions. 使用SOAP,您可以定义操作的端点。 With REST, you provide endpoints for things. 使用REST,您可以提供事物的端点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.