HTTP and soap are exactly two different protocols.

Source: Internet
Author: User
Tags http post wsdl

http: is a standard (TCP) for client and server-side requests and responses.

The purpose of the HTTP protocol is to provide a way to publish and receive htttp pages

Client-to-server interaction with the HTTP protocol: a request is initiated by an HTTP client to establish a TCP connection to the server-specified port (by default, port 80). The HTTP server listens on that port for requests sent by the client. Once the request is received, the server (to the client) sends back a status line, such as "http/1.1 OK", and (in response) message, the message body may be the requested file, error message, or some other information.

SOAP protocol: It describes a lightweight protocol for exchanging information in a decentralized or distributed environment. SOAP, based on the HTTP protocol, is an XML-based protocol.

Different: is the underlying communication protocol, the request package format is different, the SOAP package is XML format, HTTP plain text format.

Relationship: SOAP is a communication protocol, SOAP on the basis of the HTTP protocol, the request parameters written as XML, placed on the HTTP body on the submission of a Web service server (servlet,asp, etc.) processing is completed, The result is also written as XML as response back to the client, in order to make the client and the Web service can correspond to each other, you can use WSDL as a description of this mode of communication, using the WSDL tool can automatically generate WS and client framework files, SOAP has the ability to serialize complex objects into XML.

"Turn from" http://www.cnblogs.com/Ilin631/archive/2011/05/25/2056820.html

The following explanation is very thorough.

HTTP is only responsible for transmitting the data in the past, not the data is XML, HTML, pictures, text files or anything else. and the SOAP protocol defines how to make an object into XML text, how to call it in a remote way, and how to confuse it.


Two kinds of protocols are said:
HTTP is the Post Office Protocol, they specify how you want your envelopes to be written, how many stamps to paste, etc...
Soap is the agreement between you and the person who is responsible for writing the meaning of what you need to express on the stationery, but also for the other party to be able to read your letter.

Web service is generally called by the SOAP protocol through HTTP, in fact, he is a WSDL document, customers can read the WSDL document to use this Web service. The customer describes the document according to the WSDL and generates a SOAP request message. Web service is placed behind a Web server (such as IIS), and customer-generated SOAP requests are embedded in an HTTP POST request and sent to the Web server. The Web server then forwards these requests to the Web Service request processor. The purpose of the request processor is to parse the received SOAP request, invoke the Web service, and then generate the corresponding SOAP reply. After the Web server has received a SOAP response, it is sent back to the client via an HTTP reply.

WebService protocol mainly includes two aspects: transport protocol and data representation, about the transport protocol can be HTTP or other, data representation can also be a key value pair, XML or other, but now the general is http+soap, of course, others can, do not know this understanding right?

Soap simple understanding, is such an open protocol Soap=rpc+http+xml: The use of HTTP as the underlying communication protocol; RPC as a consistent call path, XML as a data transfer format, Allows service providers and service customers to communicate over the Internet through a firewall.

"Turn from" http://blog.csdn.net/21aspnet/article/details/1536824

HTTP and soap are exactly two different protocols.

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.