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

 Posted by Poster on 3/31/2009 | Category: WCF Interview questions | Views: 25175
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.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response