.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> WCF >> Post New Question Subscribe to Interview Questions

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

Posted By :Sasi Prabhu     Posted Date :November 30, 2011    Points :40   Category :WCF 
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.


You can also find related Interview Question to How to set the timeout property for the WCF Service client call?  below: 

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. If no timeout has been specified, the default is considered as 1 minute. (More...)

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.



...

binding = "wsHttpBinding"

bindingConfiguration = "LongTimeout"

...

/>














If no timeout has been specified, the default is considered as 1 minute.
(More...)

What is the Transport Protocol you use to call a Web Service ?

  
SOAP (Simple Object Access Protocol) is the preferred protocol. (More...)

By Default, ASP.NET does not allow HTML tags to be sent to server via client side due to security reason. Which property needs to be set that allows HTML tags to be processed by server?

  
ValidateRequest Property needs to be set to false. By default it's true so it does not allow unencoded HTML tags to be processed at server. It can be set at page level or at application level via web.config. (More...)

Which contract is used to documented the view for error occurred in the service to client in wcf?

  
Fault Contract is used to documented the view for error occurred in the service to client in wcf (More...)

What is the default TimeOut for a SqlCommand.CommandTimeout property?

  
The default timeOut is 30 seconds.

If you want to increase the TimeOut see the below example code
For example:-

SqlCommand cmd = new SqlCommand("select * from tablename", conn);

cmd.CommandTimeout = 50;

SqlDataReader dr = cmd.ExecuteReader();




(More...)

What is service and client in perspective of data communication?

  
A service is a unit of functionality exposed to the world.

The client of a service is merely the party consuming the service. (More...)

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

  
Set the DataMember property to the name of the table to bind to. (If this property is not set, by default the first table in the dataset is used.)
DataBind method, use this method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.
(More...)

What is service and client in perspective of data communication?

  
A service is a unit of functionality exposed to the world.

The client of a service is merely the party consuming the service.
(More...)

If you have a Dotnet Web Service and a Java Client Application, then which Communication technology will you use other than WCF ?

  
Web Service (that is), ASMX will be the most likely way to achieve cross-vender inter-operability. (More...)

Why do we need to call CG.SupressFinalize?

  
Requests that the system not call the finalizer method for the specified object.

[C#]
public static void SuppressFinalize(
object obj
);

The method removes obj from the set of objects that require finalization. The obj parameter is required to be the caller of this method.

Objects that implement the IDisposable interface can call this method from the IDisposable.Dispose method to prevent the garbage collector from calling Object.Finalize on an object that does not require it. (More...)

Can we call a base class method without creating instance?

  
Its possible If its a static method.

Its possible by inheriting from that class also.

Its possible from derived classes using base keyword. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend