Go to DotNetFunda.com
 Online : 676 |  Welcome, Guest!   Login
 
Home > Interview Questions > WCF Interview Questions > How to configure Reliability while commu ...

  • Download the OOPS, ASP.NET and ADO.NET Training Videos for FREE, click here.

call for mock interview

WCF Interview Questions

How to configure Reliability while communicating with WCF Services?

Author: Poster | Posted on: 3/31/2009 5:09:06 PM | Category: WCF | Views:856 |  Print | Asked In: Many Interviews


Answer:
Reliability can be configured in the client config file by adding reliableSession under binding tag.

<system.serviceModel>

<services>
<service name = "MyService">
<endpoint
address = "net.tcp://localhost:8888/MyService"
binding = "netTcpBinding"
bindingConfiguration = "ReliableCommunication"
contract = "IMyContract"
/>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name = "ReliableCommunication">
<reliableSession enabled = "true"/>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>


Reliability is supported by following bindings only

NetTcpBinding
WSHttpBinding
WSFederationHttpBinding
WSDualHttpBinding

Interesting?   Share and Bookmark this


Navigate to:

 Submit Interview Questions

What is Transport and Message Reliability? ...

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

Random Interview Questions
Help: If for some reason you are getting the same question by clicking Next Question or Previous Question, Try clicking Categories link above.

Related interview questions



Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)