SOAP 与 HTTP [英] SOAP versus HTTP

查看:30
本文介绍了SOAP 与 HTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到 Web 服务是通过 HTTP 上的 SOAP 传输的.那么 SOAPHTTP 之间有什么区别,如果它们都是通信协议呢?

I have read that web services are transmitted through SOAP over HTTP. Then what is the difference between SOAP and HTTP, if they are both communication protocols?

有什么区别吗,还是 HTTP 只是 SOAP 使用的绑定?

Is there any difference or is HTTP simply a binding used by SOAP?

推荐答案

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

There are two main protocols related to web services.

  • 第一个,传输协议 - 例如HTTP(常用)、TCP、UDP

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

第二,消息协议 - 例如肥皂,XML、JSON 或二进制编码的消息

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 消息中通过 HTTP 调用 Web 服务,例如您通过移动电话呼叫您的朋友并用英语交谈.

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

这篇关于SOAP 与 HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆