BizTalk配置WCF调用发生异常:
由于 ContractFilter 在 EndpointDispatcher 不匹配,
因此 Action 为“<BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema%22>
<Operation Name="SendEventInfo" Action="http://tempuri.org/IDataExChangeService/SendEventInfo" />
<Operation Name="ReceiveEventInfo" Action="http://tempuri.org/IDataExChangeService/ReceiveEventInfo" />
<Operation Name="ReceiveRejectEventInfo" Action="http://tempuri.org/IDataExChangeService/ReceiveRejectEventInfo" />
</BtsActionMapping>”的消息无法在接收方处理。这可能是由于协定不匹配(发送方和接收方 Action 不匹配)
或发送方和接收方绑定/安全不匹配。请检查发送方和接收方是否具有相同的协定和绑定
(包括安全要求,如 Message、Transport、None.
解决方案:
1.确认配置的消息安全一致, 如我都设为 None
2.确认每一个Operation Name="SendEventInfo", 与当前服务的方法名完全相同。 以及Action的Url值。
在我的错误中, 就是Operation Name="SendEventInfo"==> Operation Name="SaveSendEventInfo"就可以了。