BizTalk WCF发送端口错误-标头';协调语境';不明白
我设置了一个WCF WSHttp发送端口,并选中了Enable Transactions,在发送消息时出现以下错误:BizTalk WCF发送端口错误-标头';协调语境';不明白,wcf,biztalk,wcf-binding,biztalk-2009,Wcf,Biztalk,Wcf Binding,Biztalk 2009,我设置了一个WCF WSHttp发送端口,并选中了Enable Transactions,在发送消息时出现以下错误: The header 'CoordinationContext' from the namespace 'http://schemas.xmlsoap.org/ws/2004/10/wscoor' was not understood by the recipient of this message, causing the message to not be processed
The header 'CoordinationContext' from the namespace 'http://schemas.xmlsoap.org/ws/2004/10/wscoor' was not understood by the recipient of this message, causing the message to not be processed. This error typically indicates that the sender of this message has enabled a communication protocol that the receiver cannot process. Please ensure that the configuration of the client's binding is consistent with the service's binding.
如果我取消选中启用事务框,则消息处理成功。有人能帮我通过事务支持来实现这一点吗
以下是来自服务的web.config(transactionFlow设置为true)的绑定信息:
提前谢谢 MSDTC的设置可能有问题,请参阅
还要检查事件日志中与MSDTC相关的错误。发现问题出在服务本身。虽然使用transactionFlow=“true”正确配置了绑定,但服务协定缺少以下属性以显式允许事务:
[System.ServiceModel.TransactionFlowAttribute(System.ServiceModel.TransactionFlowOption.Allowed)]
这只是一个想法,但您可以先尝试使用非biztalk WCF客户端,以确保事务流设置正确-
[System.ServiceModel.TransactionFlowAttribute(System.ServiceModel.TransactionFlowOption.Allowed)]