How to configure Reliability while communicating with WCF Services?
Submitted by: AdministratorReliability 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
Submitted by: Administrator
<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
Submitted by: Administrator
Read Online WCF SDK Job Interview Questions And Answers
Top WCF SDK Questions
☺ | How to set the timeout property for the WCF Service client call? |
☺ | What are contracts in WCF? |
☺ | How to configure Reliability while communicating with WCF Services? |
☺ | What is binding and how many types of bindings are there in WCF? |
☺ | How to deal with operation overloading while exposing the WCF services? |
Top Application Program Categories
☺ | AutoCAD Interview Questions. |
☺ | Microsoft Office Interview Questions. |
☺ | Microsoft Outlook Interview Questions. |
☺ | Microsoft Excel Interview Questions. |
☺ | WPF Interview Questions. |