SOAP - 有什么意义? [英] SOAP - What's the point?

查看:59
本文介绍了SOAP - 有什么意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的意思是,真的,SOAP 的意义是什么?

I mean, really, what is the point of SOAP?

Web 服务已经存在一段时间了,并且有一段时间似乎术语SOAP"和Web 服务"在很大程度上可以互换.然而,SOAP 对我来说总是显得笨拙且过于复杂.

Web services have been around for a while, and for a while it seemed that the terms 'SOAP' and 'Web service' were largely interchangeable. However SOAP always seemed unwieldy and massively overcomplicated to me.

然后 REST 出现了,Web 服务突然变得有意义.

Then REST came along, and suddenly web services made sense.

正如 Joel Spolsky 所说,给程序员一个 REST URL,他们可以立即开始使用该服务,弄清楚它.

As Joel Spolsky says, give a programmer a REST URL, and they can start playing with the service right away, figuring it out.

SOAP 在 WSDL 和大量冗长的 XML 后面被混淆,尽管它是基于 Web 的,但您不能做任何事情像使用 Web 浏览器访问 SOAP 服务一样简单.

SOAP is obfuscated behind WSDLs and massively verbose XML, and despite being web based, you can't do anything as simple as access a SOAP service with a web browser.

所以我的问题的本质是:

So the essence of my question is:

  • 选择 SOAP 而不是 REST 有什么好的理由吗?
  • 您现在在使用 SOAP 吗?如果接口是 REST 会更好吗?
  • 我错了吗?

推荐答案

现在看来 WSI 同意 SOAP 不再有任何意义,因为他们已宣布将不再作为独立实体存在.

Well it appears now that the WSI agree that SOAP no longer has a point as they have announced they will cease to exist as an independent entity.

关于该公告的有趣文章和这里的一些评论:http://blogs.computerworlduk.com/simon-says/2010/11/the-end-of-the-road-for-web-services/index.htm

Interesting article about the announcement and some commentary here: http://blogs.computerworlduk.com/simon-says/2010/11/the-end-of-the-road-for-web-services/index.htm

为了回应约翰桑德斯而进行编辑以完全准确.

Edited to be completely accurate in response to John Saunders.

这篇关于SOAP - 有什么意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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