端点调度程序地址不匹配

Adress Mismatch at the end point dispatcher

我有一个 WCF 服务,它通过 BizTalk 使用 Web-Http 适配器。当我尝试调用 wcf 服务时。我收到以下错误。

<?xml version="1.0"?>
-<Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none">
-<Code>
<Value>Sender</Value>
-<Subcode>
<Value xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">
a:DestinationUnreachable
</Value>
</Subcode>
</Code>
-<Reason>
<Text xml:lang="en-US">The message with To 'https://biztalkt01.abc.org/ELIMS/ELIMS-CGA1/Service1.svc/?specimenid=abc001234'' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver's EndpointAddresses agree.</Text>
</Reason>
</Fault>

当我 google 这个错误时,我可以看到需要将此代码添加到服务代码中

[服务行为(地址过滤模式=AddressFilterMode.Any)]

但不确定此服务的服务代码在哪里。

上面的文件夹是我在 C:\inetpub\wwwroot\ELIMS\ELIMS-CGA1 中创建的服务所见。代码是否需要添加到这些文件中的任何一个或 App_Data.

中的文件中?

您需要为适配器正确配置端口设置。这与 WCF 配置文件无关,但与 BizTalk 本身中的接收位置设置有关。您必须设置 AddressBtsHttpUrlMapping 元素;有关这些特定元素的更多信息,请参阅 https://msdn.microsoft.com/en-us/library/jj572859.aspx