WEB开发网
开发学院软件开发Java 利用 WAS V6.1 开发安全可靠的 Web Services,第 ... 阅读

利用 WAS V6.1 开发安全可靠的 Web Services,第 2 部分:实现可靠的消息传递

 2010-03-26 00:00:00 来源:WEB开发网   
核心提示: <?xmlversion="1.0"encoding="UTF-8"?><soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

<?xml version="1.0" encoding="UTF-8"?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"> 
<soapenv:Header> 
 
 
<wsa:To>http://localhost:9090/Services/CalculatorService</wsa:To> 
<wsa:MessageID>urn:uuid:1D24784FA504F2842A1188808922479</wsa:MessageID> 
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action> 
</soapenv:Header> 
 
 
<soapenv:Body> 
<wsrm:CreateSequence xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"> 
<wsrm:AcksTo> 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address> 
</wsrm:AcksTo> 
<wsrm:Offer> 
<wsrm:Identifier>urn:uuid:1D24784FA504F2842A1188808922480</wsrm:Identifier> 
</wsrm:Offer> 
</wsrm:CreateSequence> 
</soapenv:Body> 
</soapenv:Envelope> 

第二条为服务提供者回复序列建立报文,该报文含有 CreateSequenceResponse 元素,报文如下:

<?xml version="1.0" encoding="UTF-8"?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
 xmlns:wsa="http://www.w3.org/2005/08/addressing"> 
<soapenv:Header> 
<wsa:MessageID>urn:uuid:1D24784FA504F2842A1188808922781</wsa:MessageID> 
<wsa:Action>http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse</wsa:Action> 
<wsa:RelatesTo>urn:uuid:1D24784FA504F2842A1188808922479</wsa:RelatesTo> 
</soapenv:Header> 
<soapenv:Body> 
<wsrm:CreateSequenceResponse xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm"> 
<wsrm:Identifier>urn:uuid:1D24784FA504F2842A1188808922780</wsrm:Identifier> 
<wsrm:Accept> 
<wsrm:AcksTo> 
<wsa:Address>http://localhost:9090/Services/CalculatorService</wsa:Address> 
</wsrm:AcksTo> 
 
 
</wsrm:Accept> 
</wsrm:CreateSequenceResponse> 
</soapenv:Body> 
</soapenv:Envelope> 

上一页  3 4 5 6 7 8 9 10  下一页

Tags:利用 WAS 开发

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