确定 SOAP 消息是否是原子事务的一部分
在原子事务管道中调用 CICS Web Service 时, SOAP 消息不一定是原子事务的一部分。
关于此任务
<soapenv:Header> 元素包含特定信息。 要了解 SOAP 消息是否是原子事务的一部分,您可以:过程
示例
<soapenv:Header>
<wscoor:CoordinationContext soapenv:mustUnderstand="1"> 1
<wscoor:Expires>500</wscoor:Expires>
<wscoor:Identifier>com.ibm.ws.wstx:
0000010a2b5008c80000000200000019a75aab901a1758a4e40e2731c61192a10ad6e921
</wscoor:Identifier>
<wscoor:CoordinationType>http://schemas.xmlsoap.org/ws/2004/10/wsat</wscoor:CoordinationType> 2
<wscoor:RegistrationService 3
xmlns:wscoor="http://schemas.xmlsoap.org/ws/2004/10/wscoor">
<cicswsa:Address xmlns:cicswsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
http://clientIPaddress:clientPort/_IBMSYSAPP/wscoor/services/RegistrationCoordinatorPort
</cicswsa:Address>
<cicswsa:ReferenceProperties
xmlns:cicswsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
<websphere-wsat:txID
xmlns:websphere-wsat="http://wstx.Transaction.ws.ibm.com/extension">com.ibm.ws.wstx:
0000010a2b5008c80000000200000019a75aab901a1758a4e40e2731c61192a10ad6e921
</websphere-wsat:txID>
<websphere-wsat:instanceID
xmlns:websphere-wsat="http://wstx.Transaction.ws.ibm.com/extension">com.ibm.ws.wstx:
0000010a2b5008c80000000200000019a75aab901a1758a4e40e2731c61192a10ad6e921
</websphere-wsat:instanceID>
</cicswsa:ReferenceProperties>
</wscoor:RegistrationService>
</wscoor:CoordinationContext>
</soapenv:Header>- CoordinationContext 指示 SOAP 消息旨在参与原子事务。 它包含 Web Service 提供程序作为协调服务的一部分所必需的信息,假定该提供程序已配置为识别和处理头。
- CoordinationType 指示协调上下文符合的 WS-AT 规范的版本。
- 协调 RegistrationService 描述了协调程序的注册点所在的位置,以及参与 Web Service 在尝试注册为原子事务的组件时必须返回给协调程序的信息。