📜  使用 SOAP 有什么好处? - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:06.748000             🧑  作者: Mango

代码示例1
REST allows a greater variety of data formats, whereas SOAP only allows XML.
● Coupled with JSON (which typically works better with data and 
offers faster parsing), REST is generally considered easier to work with.
● Thanks to JSON, REST offers better support for browser clients.
● REST provides superior performance, particularly through 
caching for information that’s not altered and not dynamic
● It is the protocol used most often for major services 
such as Yahoo, Ebay, Amazon, and even Google.
● REST is generally faster and uses less bandwidth. 
It’s also easier to integrate with existing websites with no need to 
refactor site infrastructure. This enables developers to work 
faster rather than spend time rewriting a site from scratch. 
Instead, they can simply add additional functionality.