WSDL 与 REST 的优缺点 [英] WSDL vs REST Pros and Cons

查看:34
本文介绍了WSDL 与 REST 的优缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关:

为什么要使用 REST 而不是 Web 服务?

在决定是使用 SOAP 还是 REST(我指的是 RESTful 方式的 HTTP/XML)实现 Web 服务时,我应该注意什么以及我应该考虑什么?我认为这不是万能的,所以我该如何选择使用哪一个.

When deciding whether to implement a web service using SOAP or REST (by which I mean HTTP/XML in a RESTful manner) what should I be aware of and what should I be thinking of? I presume that this isn't a one size fits all thing so how do I choose which to use.

推荐答案

以下链接提供了有关 WSDL 与 REST 的有用信息,包括优点和缺点

The following links provide useful information about WSDL vs REST including Pros and Cons

几个关键点是

1) SOAP 是为分布式计算环境设计的,而 REST 是为点对点环境设计的.

1) SOAP was designed for a distributed computing environment where as REST was designed for a point to point environment.

2) WADL 可用于定义 REST 服务的接口.

2) WADL can be used to define the interface for REST services.

http://www.ajaxonomy.com/2008/xml/web-services-part-1-soap-vs-rest
http://ajaxonomy.com/2008/xml/web-services-part-2-wsdl-and-wadl

这篇关于WSDL 与 REST 的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆