JSON+REST vs. XML+SOAP
来源:互联网 发布:天干地支的简便算法 编辑:程序博客网 时间:2024/05/16 01:25
http://blog.sina.com.cn/s/blog_4ba0876e0101393g.html
For some "out-men" like me
Google just announced that
Reason #1
JSON is a lot simpler than XML+XML Schema and is more isomorphicwith the relational data stores most services use forpersistence.
Reason #2
Browsers can consume large amount of JSON much more efficientlythan they can consume large amount of XML and the gap is wideningbecause the latest versions of the browsers are now providingnative, safe support for encoding and decoding JSON.
Reason #3
REST interfaces are much easier to design and implement than SOAPinterfaces: verbs are already defined, exception semantics arealready defined, caching semantics are already defined, versioningsemantics are already defined, authentication and access controlare already defined. All you really need to focus on are modelingresources using JSON, modeling URL hierarchies, modeling searchpatterns and modeling batching for performance improvements.
And the gap will continue to widen as the open web stack maturesand things like Open ID and OAuth become more widely spread.
If you are looking for a best practice implementation, take a lookat the
Note: I can see my old friends saying: “But Edwin, JSON+REST isjust a binding component, we already have support for that”
- JSON+REST vs. XML+SOAP
- REST vs SOAP
- SOAP VS. REST
- REST VS SOAP , WCF
- REST vs SOAP Web Services
- 【Web Service】REST vs SOAP
- REST Vs SOAP,Soap 和 Rest 的区别
- REST Vs SOAP,Soap 和 Rest 的区别
- REST Vs SOAP,Soap 和 Rest 的区别
- REST SOAP 和 XML-RPC
- SOAP vs XML-RPC
- 由SOAP说开去 - - 谈谈WebServices、RMI、RPC、SOA、REST、XML、JSON
- 由SOAP说开去 - - 谈谈WebServices、RMI、RPC、SOA、REST、XML、JSON
- Style of WebService: REST vs. SOAP
- Web Services, Part 1: SOAP vs. REST
- Style of WebService: REST vs. SOAP
- Style of WebService: REST vs. SOAP
- Style of WebService: REST vs. SOAP
- 【Android每周专题】Android中maxSdkVersion、minSdkVersion、targetSdkVersion、以及project.properties中的target
- 移动互联网下一个阶梯是什么
- 思念
- 网站打不开的线路检查
- Wireshark过滤规则
- JSON+REST vs. XML+SOAP
- 一点点小烦躁!!!
- JQuery优缺点
- android spinner
- The JSON Formatter was created to help with debugging.
- 理解MySQL——索引与优化
- 二进制实用程序(objdump, readelf,ar, nm等)
- JSON相关资源网站
- NSFileManager – Discovering Directory Contents