且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SOAP与HTTP

更新时间:2021-08-19 22:18:01

有Web服务相关的两个主要协议。

There are two main protocols related to web services.


  • 1,传输协议 - 例如
    HTTP(常用),TCP,UDP

  • 1st, transport protocols - e.g. HTTP(commonly used), TCP, UDP

2,的消息传递协议 - 例如肥皂,
XML,JSON或二进制EN codeD的消息

2nd, messaging protocols - e.g. SOAP, XML, JSON or binary encoded messages

一般而言,


  • 的消息传递协议负责在共同商定格式交换的消息。

  • 传输协议负责提供的消息以及如何
    它应该沟通。

  • Messaging protocols are responsible for exchanging the messages in a commonly agreed format.
  • Transport protocols are responsible for delivering the messages and how it should communicate.

一个真实的例子:
HTTP就像是电话沟通,SOAP是喜欢英语。

A real world example: HTTP is like telephone communication, SOAP is like English.

您在SOAP消息调用Web服务通过HTTP,如您通过手机和英语交谈打电话给你的朋友。

You call the web service over HTTP in SOAP messages such as you call your friend by mobile phone and talking in English.