XML-RPC 和 SOAP 之间有什么区别? [英] What's the difference between XML-RPC and SOAP?

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

问题描述

我从来没有真正理解为什么 Web 服务实现者会选择一个而不是另一个.XML-RPC 通常存在于较旧的系统中吗?任何帮助理解这一点将不胜感激.

I've never really understand why a web service implementer would choose one over the other. Is XML-RPC generally found in older systems? Any help in understanding this would be greatly appreciated.

推荐答案

差异?

SOAP 功能更强大,更受软件工具供应商(MSFT .NET、Java 企业版等)的青睐.

SOAP is more powerful, and is much preferred by software tool vendors (MSFT .NET, Java Enterprise edition, that sort of things).

SOAP 长期以来(2001-2007 年)被视为 SOA 的首选协议.xml-rpc 没有那么多.REST 是 SOA 的新宠,尽管它不是协议.

SOAP was for a long time (2001-2007ish) seen as the protocol of choice for SOA. xml-rpc not so much. REST is the new SOA darling, although it's not a protocol.

SOAP 更冗长,但功能更强大.

SOAP is more verbose, but more capable.

一些较旧的东西不支持 SOAP.例如,没有经典 ASP 的 SOAP 库(我可以找到).

SOAP is not supported in some of the older stuff. For example, no SOAP libs for classic ASP (that I could find).

SOAP 在 python 中没有得到很好的支持.XML-RPC 在 Python 和标准库中有很好的支持.

SOAP is not well supported in python. XML-RPC has great support in python, in the standard library.

SOAP 支持文档级传输,而 xml-rpc 更多的是关于值的传输,虽然它可以传输结构、列表等结构.

SOAP supports document-level transfer, whereas xml-rpc is more about values transfer, although it can transfer structures such as structs, lists, etc.

xm-rpc 实际上是关于程序到程序语言的不可知转移.它主要通过 http/https.SOAP 消息也可以通过电子邮件发送.

xm-rpc is really about program to program language agnostic transfer. It primarily goes over http/https. SOAP messages can go over email as well.

xml-rpc 更加统一.它让您可以简单地做事,当您知道自己在做什么时,即使使用终端文本编辑器,也可以非常快速地部署高质量的 Web 服务.以这种方式执行 SOAP 是一个动物园;你真的需要一个好的 IDE 来让它可行.

xml-rpc is more unixy. It lets you do things simply, and when you know what you're doing, it's very fast to deploy quality web services, even when using terminal text editors. Doing SOAP that way is a zoo; you really need a good IDE to make it feasible.

不过,如果您正在争夺财富 500 强 IT 职位,那么了解 SOAP 会在您的简历/简历上看起来更好.

Knowing SOAP, though, will look much better on your resume/CV if you're vying for a Fortune 500 IT job.

xml-rpc 有一些非 ascii 字符集的问题.

xml-rpc has some issues with non-ascii character sets.

XML-RPC 不支持命名参数.它们的顺序必须正确.对 SOAP 不确定,但可以这么认为.

XML-RPC does not support named parameters. They must be in correct order. Not sure about SOAP, but think so.

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

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