The following topics and solutions belong to personal opinion, welcome to share and supplement the content of the solution, mutual promotion and common progress!
Topic
What are the similarities and differences between RESTful WebService and soap WebService?
Answer
- Soap is a protocol, and rest is actually an architectural principle of an Internet software, not a protocol. It is more like an interpretation of the HTTP protocol's design intent.
- SOAP has evolved to the present, relative to rest, has a considerable degree of maturity.
- The SOAP WebService has a uniform specification for the message body, the message first class content, and the generality is relatively stronger. and restful Webserivce is actually just a design principle, there is no unified norm, each website design each has the different, varies from person to person.
- RESTful WebService are better at ease of use and efficiency than soap Webserivce. It takes advantage of the design concept of HTTP protocol and integrates the front-end technology of Web2.0 to improve the development efficiency.
- From a security standpoint, soap already has a complete set of security specifications for security control, and rest is virtually free of any security specifications and needs to be handled by the user themselves.
- For soap WebService, because of its RPC-oriented design, it is very easy for developers to accept. and restful WebService, because of the need for resource-oriented design, won't be also difficult to reverse its design thinking, in addition, some of the more complex situations are difficult to completely follow the rest style design.
A Java question every day [8]