2011-03-17 12 views
2

我正在嘗試創建基本的單向自定義WCF LOB適配器,以便與BizTalk一起使用,並且正在實施由Visual Studio WCF創建的Execute方法LOB Adapter SDK項目嚮導。如何使用自定義WCF LOB適配器執行單向發送

此方法總結與以下注釋的文檔,在出現右上面的方法:返回null

// Executes the request message on the target system and returns a response message. 
    // If there isn’t a response, this method should return 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.

是怎麼回事?

回答

0

我還沒有使用LOB適配器SDK,但BTS中的WCF適配器並不支持one-way services。最好的辦法可能是返回一個空的信息(即在一個正常的服務合同中沒有一個方法)

+0

謝謝托馬斯,是的,這似乎是正確的答案。我仍然需要一些幫助來確定如何返回「空」或「無效」消息,但這更多的是與WCF相關的概念,而不是WCF LOB適配器SDK。 – 2011-03-23 07:53:21