Pages

Men

rh

7/06/2012

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

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>

No comments :

Post a Comment