Search code examples
biztalkbiztalk-2013

System.TimeoutException Error


We changed our Orchestration from using HTTP adapter to Wcf-WebHttp Adapter to call the REST service. In the Orchestration previously we used

Message(HTTP.RequestTimeout) = 3600;

Now with Wcf-WebHttp adapter which timeout do I need to use. Because there are WCF.CloseTimeout, WCF.LeaseTimeout, WCF.OpenTimeout,WCF.SendTimeout.

Any help is greatly appreciated. Thanks


Solution

  • Set WCF.OpenTimeout, WCF.SendTimeout, and WCF.CloseTimeout.

    Per the documentation (https://msdn.microsoft.com/en-us/library/Hh924831(v=VS.110).aspx):

    • SendTimeout governs the whole request/response.
    • OpenTimeout governs the time to make the open the channel
    • CloseTimeout governs the time to close the channel.

    Also be aware that there is a master MSDTC timeout in Machine.config that's defaulted to 10 minutes. That shouldn't be an issue here, but if you need to modify it here's the information: http://blog.brandt-lassen.dk/2012/11/overriding-default-10-minutes.html