It considered as collection of the following technologies.
- Web Services(ASMX)
- NET Enterprise Services
- MSMQ (Microsoft Messaging Queue)
- .NET Remoting
Code written in WCF can interact across components, applications and systems and is in accordance with SOA (Service Oriented Architecture).
Addresses
- Location of the service
- Transport protocol or transport schema used to communicate with the service.
The location indicates the name of the
target machine, site, or network; a communication port, pipe, or queue; and
an optional specific path or URI.
- HTTP
- TCP
- Peer network
- IPC (Inter-Process Communication over named pipes)
- MSMQ\
Addresses have the following format:
TCP Addresses
HTTP Addresses
IPC Addresses
MSMQ Addresses
Peer Network Address
Basic Binding
It exposes a WCF service as a legacy ASMX web service
This binding is extremely useful when the intent is to design a WCF service that should provide backward compatibility with WebServices.
It 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.
Restriction: It requires both the client and the service to use WCF.
Peer network binding
NetPeerTcpBinding class provides this type of binding and 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
NetNamedPipeBinding class provides this type of binding and uses named pipes as a transport for same-machine communication. It is the most secure binding as it cannot accept calls from outside the machine and it supports a number of features similar to the TCP binding.
Web Service (WS) binding
WSHttpBinding class provides this type of binding, and uses HTTP or HTTPS
for transport.
Federated WS binding
WSFederationHttpBinding class provides this type of binding, this is a
specialization of the WS binding, offering support for federated security..
Duplex WS binding
WSDualHttpBinding class provides this type of binding .It is similar to the WS
binding except it also supports bidirectional communication from the service to
the client.
MSMQ binding
NetMsmqBinding class provides this type of binding and uses MSMQ for transport
and is suitable for disconnected queued calls.
MSMQ integration binding
MsmqIntegrationBinding class provides this type of binding and converts WCF
messages to and from MSMQ messages.
This is most suitable for usage when Service legacy MSMQ clients
interoperability is critical.
WCF use the following three messaging patterns:
- Simplex,
- Duplex
- Request-Reply.
Simplex communication is commonly referred to as one-way communication.
This approach is used when asynchronous write-only services are required. It
simply means if only one directional (client to Service) communication is
required, use this pattern.
Duplex communication provides true asynchronous two-way communications.
(using callback operations).
In simplex and duplex communication, the consumer is not locked into waiting for
a reply.
Request-Reply: General enough not to provide any details
Defining Bindings is one the most critical stages in WCF Service development.
Correct type of binding can save a lot of time and effort need to build an
effective service.
As an effort to make you comfortable in Service development below is the
checklist that needs to be referred before finalizing bindings for your service.
Interoperability Level:
Make sure if communication will only be in a .NET to .NET scenario, or legacy
ASMX service, or if it is to be used by a consumer that adheres to the WS*
specifications.
Encoding:
Select correct type of encoding, from among Text Message Transmission
Optimization Mechanism (MTOM) Binary.
Transport Protocols
Select from transport options TCP, HTTP, Named Pipe, and MSMQ.
Messaging patterns : simplex, duplex, and request-reply.
Security Considerations: Windows security, WS-Security, Transport level
security.
Transactions and reliable sessions
Contracts:
The contract is a platform-neutral and standard way of describing what the
service does.
WCF defines 4 types of contracts.
- Service contracts
Describe which operations the client can perform on the service.
- Data contracts
Define which data types are passed to and from the service.
- Fault contracts
Define which errors are raised by the service, and how the service handles and propagates errors to its clients.
- Message contracts
Allow the service to interact directly with messages. Message contracts can be typed or untyped
Service Type Support
The following are the 3 types of services that can be written with WCF.
- Typed Services: These services use
exact parameterization(passing the required parameters in the correct order,
format and type) when calling a service method and respond with a
well-defined type(as expected by the caller).
- Un-Typed Services: XML is the core
of this type as it is used to transport the input parameters and the
response output is also in XML. These services are the most flexible, but
provide very little value back to the consumer.
- Typed Message Services: A custom
type is defined that will contain the required input parameters and one more
type that will wrap up the output parameters.
This approach is generally known as Request Object / Response Object, since these are the types of
objects that are result of these types of services.


Dorababu MekaPosted Jul 5, 2011, 5:54 AM EDT
I think this is from the book of o'reilly
Suthish NairTOP 100Posted Jul 5, 2011, 3:25 AM EDT
Pradip, if you taking any contents from books or articles posted by some other person then you need to put a reference url or must give credit to the original author. So please update you article with references...
MicalgrayPosted Jul 5, 2011, 3:02 AM EDT
Good Article Pradip. keep it up....