WCF SDK Question: Download WCF SDK PDF

How to set the timeout property for the WCF Service client call?

Tweet Share WhatsApp

Answer:

The timeout property can be set for the WCF Service client call using binding tag.
<client>
<endpoint
...
binding = "wsHttpBinding"
bindingConfiguration = "LongTimeout"
...
/>
</client>
<bindings>
<wsHttpBinding>
<binding name = "LongTimeout" sendTimeout = "00:04:00"/>
</wsHttpBinding>
</bindings>
If no timeout has been specified, the default is considered as 1 minute.

Download WCF SDK PDF Read All 71 WCF SDK Questions
Previous QuestionNext Question
How to configure Reliability while communicating with WCF Services?How to deal with operation overloading while exposing the WCF services?