Web Services Technology Protocol: REST and soap

Source: Internet
Author: User
Tags representational state transfer

The Web Service technology has SOAP (Simple Object access Protocol, easy Objects accessing protocol) and rest (representational state Transfer, presentation status transfer)

REST: A scheme that is invoked with a standard URI. The client's application obtains a representation of the resource through a URI. Obtaining these representations causes these applications to transform their state. If you need a stateless crud (create/read/update/delete, create/read/update/delete) operation, then rest should be used.

Advantages:

1. Rest is easy to understand

2. Support the HTTP/HTTPS client/server as long as it is supported

3. The returned structure can be in any format (defined by the developer)

Disadvantages:

Lack of standards and are therefore considered only as an architectural approach.

SOAP1.2:

Soap is inseparable from XML (extensible Markup Language, Extensible Markup Language) in three ways: the SOAP envelope (envelope) is XML-based, it defines what is in the message and how to handle it; a set of encoding rules for data types ; Process invocation and response planning. The SOAP envelope is emitted by the transport Protocol (HTTP/HTTPS), the RPC (remote Procedure call, remoted procedure calls) are executed, and an XML document is returned with the SOAP envelope.

If the application requires contextual information and dialog state management, then soap should be used.

Advantages:

1. Based on the "generic" transport protocol. Rest is currently based on HTTP/HTTPS, while soap can support any transport protocol.

2. Well-defined agreements and a set of well-established rules

Disadvantages:

XML is also a disadvantage because XML is lengthy and time-consuming to parse.

Web Services Technology Protocol: REST and soap

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.