【问题标题】:How to Perform a One-Way Send with a Custom WCF LOB Adapter如何使用自定义 WCF LOB 适配器执行单向发送
【发布时间】:2011-03-17 22:41:31
【问题描述】:

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

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

   // 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.

什么给了?

【问题讨论】:

    标签: biztalk wcf-lob-adapter


    【解决方案1】:

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

    【讨论】:

    • 谢谢托马斯,是的,这似乎是正确的答案。我仍然需要一些帮助来确定如何返回“空”或“无效”消息,但这更多是与 WCF 相关的概念,而不是 WCF LOB 适配器 SDK。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-19
    相关资源
    最近更新 更多