PHPz2017-04-17 14:39:51
Strictly speaking, rest is not a form of web service. It is generally believed that restful is a way of expressing resources. It completes interaction in a lightweight way through the http method, get post, etc., that is, treating both data and operations as As a resource, because of its lightweight and interoperability characteristics, it is often used for enterprise application integration. As an important technology of SOA, it is often confused with web service, another technology of SOA. The main implementation technologies of traditional web services are XML and soap, which use protocols to describe data and operations. Compared with restful, they are more heavyweight.
Now some mainstream frameworks, such as spring, have added support for rest, simplifying development work. However, many companies still use soap because soap provides good support in terms of security.
天蓬老师2017-04-17 14:39:51
and SOAP
and XML-RPC
REST
have more outstanding performance, which can be completely realized through the HTTP protocol, and the cache can also be used to improve response speed, performance, efficiency and ease of use. Both are better than SOAP