开发者

BizTalk - Catch EndPoint Not found Exception

The WCF service to which my send & receive ports are configured, is not available; thus I am getting an EndPoint not found exception. How do I catch this exception in the middle of my orcehstration and flow towards a clean exit from the orchestration? I should be able to capture the detail and invoke a class lib (through Expression shape).

I trie开发者_如何学Cd catching the FaultContract, System.Exception in the scope from which I am sending the request to port. But in vain.


Your have to play by the rules first!

In order to catch an exception within your scope block in Biztalk while using a WCF request-response port, you might have to do the following...

  1. Set the retry-count to 0 on your physical request-response port which you use to bind.
  2. Enable the flag Delivery Notification to 'Transmitted' on your logical request-response port within the orchestration.
  3. Catch the "System.Web.Services.Protocols.SoapException" exception and handle it as your please.

Hope this helps.

References: Have a look at my article in code project Code Project

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜