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

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:1515 |  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

Found interesting? Add this to:

| More


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

More ...


Advertisement

About Us | The Team | Advertise | Contact Us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 9/3/2010 3:55:19 AM