Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
About Us
986
Questions
785
Answers
Interview Preparation mode
beta
Funny Facebook Status
Enter your email address
All categories
SQL Server Interview Questions and Answers
(197)
SSIS Interview Questions and Answers
(54)
SSRS Interview Questions and Answers
(9)
SSAS Interview Questions and Answers
(29)
.NET Interview Questions and Answers
(186)
Oracle Interview Questions and Answers
(122)
Java Interview Questions and Answers
(32)
UNIX Interview Questions and Answers
(47)
Networking Interview Questions and Answers
(17)
MySQL Interview Questions and Answers
(30)
HR Interview Questions and Answers
(237)
General Interview Questions and Answers
(9)
Other Interview Questions and Answers
(8)
Job Openings
(3)
Greenplum Database Interview Questions and Answers
(5)
What is binding and how many types of bindings are there in WCF?
Nice?
Vote!
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf
1 Answer
Nice?
Vote!
A binding defines how an endpoint communicates to the world. A binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint.
WCF supports nine types of bindings.
Basic binding
Offered by the BasicHttpBinding class, this is designed to expose a WCF service as a legacy ASMX web service, so that old clients can work with new services. When used by the client, this binding enables new WCF clients to work with old ASMX services.
TCP binding
Offered by the NetTcpBinding class, this uses TCP for cross-machine communication on the intranet. It supports a variety of features, including reliability, transactions, and security, and is optimized for WCF-to-WCF communication. As a result, it requires both the client and the service to use WCF.
Peer network binding
Offered by the NetPeerTcpBinding class, this uses peer networking as a transport. The peer network-enabled client and services all subscribe to the same grid and broadcast messages to it.
IPC binding
Offered by the NetNamedPipeBinding class, this uses named pipes as a transport for same-machine communication. It is the most secure binding since it cannot accept calls from outside the machine and it supports a variety of features similar to the TCP binding.
Web Service (WS) binding
Offered by the WSHttpBinding class, this uses HTTP or HTTPS for transport, and is designed to offer a variety of features such as reliability, transactions, and security over the Internet.
Federated WS binding
Offered by the WSFederationHttpBinding class, this is a specialization of the WS binding, offering support for federated security.
Duplex WS binding
Offered by the WSDualHttpBinding class, this is similar to the WS binding except it also supports bidirectional communication from the service to the client.
MSMQ binding
Offered by the NetMsmqBinding class, this uses MSMQ for transport and is designed to offer support for disconnected queued calls.
MSMQ integration binding
Offered by the MsmqIntegrationBinding class, this converts WCF messages to and from MSMQ messages, and is designed to interoperate with legacy MSMQ clients.
For WCF binding comparison, see
http://www.pluralsight.com/community/blogs/aaron/archive/2007/03/22/46560.aspx
answered
1 year
ago
by
KrishnaMachiraju
(
7,980
points)
Related questions
Nice?
Vote!
1
answer
What is address in WCF and how many types of transport schemas are there in WCF?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf
Nice?
Vote!
1
answer
What are different bindings supported by WCF?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
R
(
19,530
points)
wcf
wcf-interview-questions
bindings
Nice?
Vote!
2
answers
What are the major differences between services and Web services? What is the difference WCF and Web services?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf
wcf-interview-questions
web-services
Nice?
Vote!
1
answer
What are the advantages of hosting WCF Services in IIS as compared to self-hosting?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
Anand
(
1,440
points)
wcf
wcf-interview-questions
hosting
iis
Nice?
Vote!
1
answer
What is Proxy and how to generate proxy for WCF Services?
asked
1 year
ago
in
.NET Interview Questions and Answers
by
KrishnaMachiraju
(
7,980
points)
wcf