为何需要SOAP? XML是在不同的应用程序之间进行交换的 [英] Why needed SOAP? XML was there to exchange between different application

查看:123
本文介绍了为何需要SOAP? XML是在不同的应用程序之间进行交换的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SOAP是使用XML并在应用程序之间进行通信,驻留在不同服务器中并使用任何语言编写的协议,使用HTTP协议。

但是为什么不同的应用程序无法交换XML(不依赖于语言或服务器)用于数据交易?为什么需要这个SOAP协议?

SOAP is protocol which uses XML and communicate between application, reside in different server and written in any language, using HTTP protocol.
But why different application cant exchange XML ( not language or server dependent) for data transaction? Why this SOAP protocol was needed at all?

推荐答案

SOAP是所有通信方都理解的标准即合同集。在内部,SOAP使用XML。

希望澄清两者之间的区别。
SOAP is the standard i.e. set of contracts that all communicating parties understand. Internally, SOAP uses XML.
Hope that clarifies the difference between the two.


1)旧的应用程序使用对象之间的远程过程调用(RPC)进行通信DCOM和CORBA,但HTTP不是为此而设计的。 RPC代表兼容性和安全性问题;防火墙和代理服务器通常会阻止这种流量。



在应用程序之间进行通信的更好方法是通过HTTP,因为所有Internet浏览器和服务器都支持HTTP。创建SOAP是为了实现这一目标,SOAP提供了一种在不同操作系统上运行的应用程序之间的通信方式,使用不同的技术和编程语言。



2)SOAP是一个XML的专业化,因为它有一个模式,如http://www.xmlsoap.org/soap/envelope/,而XML则更为通用。



3你可以在这里找到有关SOAP的详细信息: http://www.w3.org/TR/soap/ [< a href =http://www.w3.org/TR/soap/target =_ blanktitle =New Window> ^ ]
1)The old applications communicated using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic.

A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this, and SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.

2)SOAP is a specialization of XML, as it has a schema, such as http://www.xmlsoap.org/soap/envelope/, whereas XML is more general.

3)You can find details about SOAP here: http://www.w3.org/TR/soap/[^]


这篇关于为何需要SOAP? XML是在不同的应用程序之间进行交换的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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