WEB开发网
开发学院软件开发Java 将 Web Services Reliable Messaging (WS-RM) 应用... 阅读

将 Web Services Reliable Messaging (WS-RM) 应用到 Web 服务,第 1 部分

 2010-03-15 00:00:00 来源:WEB开发网   
核心提示: <soapenv:Header>…….</soapenv:Header><soapenv:Body><wsrm:CreateSequencexmlns:wsrm="http://docs.oasis-open.org

<soapenv:Header> 
  ……. 
</soapenv:Header> 
  <soapenv:Body> 
    <wsrm:CreateSequence xmlns:wsrm="http://docs.oasis-open.org/ws- 
rx/wsrm/200702"> 
      <wsrm:AcksTo> 
        <wsa:Address>http://docs.oasis-open.org/ws-rx/wsmc/200702/anonymous? 
            id=urn:uuid:13EC8EEB4338FEE7CB1185807025917</wsa:Address> 
      </wsrm:AcksTo> 
    </wsrm:CreateSequence> 
</soapenv:Body> 

CreateSequenceResponse:此 WS-RM 协议消息通知客户机或提供商 WS-RM 实现到特定端点的 createSequence 请求已经被接受;它还提供了 wsrm:Identifier,它用于描述该序列。

<soapenv:Header> 
  ……. 
</soapenv:Header> 
<soapenv:Body> 
  <wsrm:CreateSequenceResponse xmlns:wsrm= 
"http://docs.oasis-open.org/ws-rx/wsrm/200702"> 
    <wsrm:Identifier>urn:uuid:13EC8EEB4338FEE7CB1185807029442 
</wsrm:Identifier> 
  </wsrm:CreateSequenceResponse> 
</soapenv:Body> 

Sequence message:这些消息承载了应用程序消息。每个序列消息都有一个消息编号,编号从 1 开始并且随着每发送一个应用程序消息而递增。

<soapenv:Header> 
  <wsa:To>http://127.0.0.1:9999/axis2/services/RMSampleService 
  </wsa:To> 
  <wsa:ReplyTo> 
    <wsa:Address>http://docs.oasis-open.org/ws-rx/wsmc 
/200702/anonymous?id=urn:uuid:13EC8EEB4338FEE7CB1185807025917 
    </wsa:Address> 
  </wsa:ReplyTo> 
  <wsa:MessageID>urn:uuid:13EC8EEB4338FEE7CB1185807026684 
  </wsa:MessageID> 
  <wsa:Action>urn:wsrm:EchoString</wsa:Action> 
  <wsrm:Sequence xmlns:wsrm="http://docs.oasis-open.org/ 
ws-rx/wsrm/200702" soapenv:mustUnderstand="1"> 
    <wsrm:Identifier>urn:uuid:13EC8EEB4338FEE7CB1185807029442 
</wsrm:Identifier> 
    <wsrm:MessageNumber>1</wsrm:MessageNumber> 
  </wsrm:Sequence> 
</soapenv:Header> 
<soapenv:Body> 
……. 
</soapenv:Body> 

上一页  1 2 3 4 5 6 7 8  下一页

Tags:Web Services Reliable

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接