📜  SOAP和HTTP之间的区别

📅  最后修改于: 2021-08-27 17:16:32             🧑  作者: Mango

1.简单对象访问协议(SOAP):
简单对象访问协议(SOAP)是用于在节点之间交换结构化数据的网络协议。它使用XML格式来传输消息。它可以在HTML和SMTP之类的应用程序层协议上运行,用于表示法和传输。 SOAP允许进程在所有平台,语言和操作系统之间进行通信,因为HTTP等协议已安装在所有平台上。

2. HTTP:
HTTP是由Cern的Tim Berners Lee在1989年创建的应用程序层协议,目前用于网络上的大多数数据传输。它是在万维网上使用超文本文件进行数据通信的基础。该协议负责服务器在通过网络发送信息时必须采取的措施。在浏览器中输入URL时,此协议将HTTP请求发送到服务器,然后将HTTP响应发送回浏览器。

SOAP和HTTP之间的区别:

S.No. SOAP HTTP
1. SOAP stands for Simple Object Access Protocol. HTTP stands for Hypertext Transfer Protocol.
2. It is XML based used for sending and receiving messages. It is used to transfer information over the internet.
3. It supports web socket or WS-Addressing, WS-Security, SwA. It do not supports web socket or WS-Addressing, WS-Security, SwA.
4. HTTP is over TCP and IP. SOAP is over HTTP.
5. It support runtime checking against WSDL. It do not support runtime checking against WSDL.
6. It support Automatic processing of Message Transmission Optimization Mechanism (MTOM). It also support MTOM, but it must use the MIME message domain and design flow should be done to handle the attachments explicitly.
7. This protocol’s design is Data centric. This protocol’s design is Document centric.
8. It is a light weight data interchange protocol. It is not light weight data transfer protocol as SOAP.