SOAP 还是 REST?具体项目 [英] SOAP or REST? Specific Project

查看:28
本文介绍了SOAP 还是 REST?具体项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚我应该为特定项目使用 SOAP 还是 REST.我将解释这个项目是什么或需要做什么,我希望你们中的一些人能给我有用的信息,告诉我为什么我应该使用一个而不是另一个.

I'm trying to figure out wether I should use SOAP or REST for a specific project. I will explain what the project is or needs to do, and I hope some of you will give me useful information about why I should use one over the other.

我需要处理的项目完全基于 Web 服务.每个前端实现都需要访问 Web 服务以获取所需的所有信息.但除此之外,我们还有一个 Indesign 插件,可以与这些网络服务通信以上传文档并检查文档的验证等.

The project I need to work on is totally web service based. Every frond end implementation needs to access webservices to get all the information it needs. But Beyond that, we also have an Indesign plugin that talks to these webservices to upload documents and check validations on the document etc.

简而言之,我需要通过前端 Web gui 和 indesign 插件访问 Web 服务.后者让我怀疑我应该使用 REST 还是 SOAP.

So to make it short, I need to access the web services via front end web gui's and via an indesign plugin. The latter makes me wonder wether I should use REST or SOAP.

非常感谢您阅读本文并发布反馈.

Thanks alot for reading this and posting you feedback.

推荐答案

我发现这篇关于 SOAP 与 REST 优缺点的非常棒的文章:http://geeknizer.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol/

I found this really great article on the advantages and disadvantages of SOAP vs REST: http://geeknizer.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol/

还有我自己的拙见:
我不喜欢 SOAP,我从来不喜欢.当时很棒,但从来没有感觉正确".如果您曾经尝试阅读这些巨大的重载 XML 文档之一并将其与 REST 输出(大多数情况下是 JSON)进行比较,那么您就会明白我的意思.恕我直言,只是感觉更好".
一个问题是您必须更好地记录您的 REST API,但只要不是对所有人开放,这应该不是什么大问题.
特别是如果您使用 Web 服务处理所有数据,我认为您应该选择更轻量、更少带宽消耗的选项:REST.
此外,REST 是目前每个人都在使用的新技术……;)

And my own humble opionion:
I don't like SOAP, I never did. It's been great at the time, but it just never felt "right". If you've ever tried to read one of these huge overloaded XML-documents and compared it to the REST output (which is JSON most of the time) you know what I mean. IMHO just feels "better".
One problem is that you have to document your REST API better, but that shouldn't be that big problem as long as it is not open to everyone.
Especially if you handle all your data with Webservices, I think you should go with the lighter and less bandwith consuming option: REST.
Also REST is the new and hip technology that everyone uses at the moment... ;)

关于你的 indesign 插件:你应该能够包含任何你想要的库,所以这应该不是问题.

About your indesign plugin: You should be able to include any library you want, so that shouldn't be a problem.

这篇关于SOAP 还是 REST?具体项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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