A Java question every day [8]

Source: Internet
Author: User

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

    1. 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.
    2. SOAP has evolved to the present, relative to rest, has a considerable degree of maturity.
    3. 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.
    4. 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.
    5. 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.
    6. 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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.