Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑使用 JSON-RPC 作为新 SOA 系统的 webAPI 语言。
我读到的是它比 XML-RPC 更快更简单,听起来不错。
我不明白的是,我必须选择吗?不能(自动)将相同的数据打包和解包到 XML/JSON/BSON/(其他)。不能在 HTTP 标头中指定语言,并且服务器通过解析和处理请求来做正确的事情吗?
这些协议是否已经兼容?
如果不是,为什么不呢?
有一些平台可以为你切换这些东西。我认为 WCF 具有这种能力。但这在很大程度上与您使用的技术有关。