2

我正在尝试创建一个基本的单向自定义 WCF LOB 适配器以用于 BizTalk,并且正在实现Execute由 Visual Studio WCF LOB 适配器 SDK 项目向导创建的方法。

此方法的文档总结了以下注释,该注释显示在方法的正上方:

   // Executes the request message on the target system and returns a response message.
   // If there isn’t a response, this method should return null

但是,当返回时null,BizTalk 中会出现错误,并带有以下(粗略翻译的)消息:

System.ServiceModel.CommunicationException: The server did not produce an appropriate response ; this may be due to non-matching contracts ; a premature end of the session or an internal error.

是什么赋予了 ?

4

1 回答 1

0

LOB适配器SDK我没用过,但是BTS中的WCF适配器对单向服务支持不是很好。您最好的选择可能是返回一条空消息(即在常规服务合同中无效,但不是一种方式。)

于 2011-03-21T02:59:49.830 回答