How to configure Reliability while communicating with WCF Services?

 Posted by Poster on 3/31/2009 | Category: WCF Interview questions | Views: 11919
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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response