SOAP与HTTP [英] SOAP versus HTTP

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

问题描述

我已阅读,Web服务是通过HTTP上的SOAP传输。然后就是什么区别的 SOAP HTTP ,如果他们都是通信协议?

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.


  • 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.

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

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