通过沿着消息路径经过不同的端点,SOAP 消息可从某个发送者传播到某个接收者。并非 SOAP 消息的所有部分均打算传送到 SOAP 消息的最终端点,不过,另一个方面,也许打算传送给消息路径上的一个或多个端点。
SOAP 的 actor 属性可被用于将 Header 元素寻址到一个特定的端点。
语法
soap:actor=”URI”
实例
<?xml version=”1.0″?>
<soap:Envelope
xmlns:soap=”http://www.w3.org/2001/12/soap-envelope”
soap:encodingStyle=”http://www.w3.org/2001/12/soap-encoding”>
<soap:Header>
<m:Trans
xmlns:m=”http://www.w3school.com.cn/transaction/”
soap:actor=”http://www.w3school.com.cn/appml/”>234</m:Trans>
</soap:Header>
…
</soap:Envelope>
十、 WSDL
(1)什么是 WSDL?
WSDL 指网络服务描述语言
WSDL 使用 XML 编写
WSDL 是一种 XML 文档
WSDL 用于描述网络服务
WSDL 也可用于定位网络服务
(2)WSDL 文档结构
WSDL 文档是利用这些主要的元素来描述某个 web service 的:
元素 |
定义 |
<portType> |
web service 执行的操作 |
<message> |
web service 使用的消息 |
<types> |
web service 使用的数据类型 |
<binding> |
web service 使用的通信协议 |
一个 WSDL 文档的主要结构是类似这样的:
<definitions>
<types>
definition of types……..
</types>
<message>
definition of a message….
</message>
<portType>
definition of a port…….
</portType>
<binding>
definition of a binding….
</binding>
</definitions>
十一、集群负载均衡
1、首先在本地建立四个队列管理器:T1,T2,T3,T4,侦听端口为2001,2002,2003,2004。
2、新建一个“队列管理器集群“:MYCLUSTER
选择要添加的完全存储库QM,通常MQ集群中至少有两个完全存储库,这里我们选择T1,T2为完全存储库,T3,T4为部分存储库。
以下文章点击率最高
Loading…