ProgrammerGuide.Net | Step by Step Programmer Guide

How to Set the Timeout Property for the WCF Service Client Call? | WCF Interview Question

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.

Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?