: What is WCF?
: Windows Communication Foundation (formerly code-named "Indigo") is a
: set of .NET technologies for building and running connected systems.
: It is a new breed of communications infrastructure built around the
: Web services architecture.
: in technical terms
: Windows Communication Foundation is Microsoft's unified programming
: model for building service-oriented applications with managed code.
: It extends the .NET Framework to enable developers to build secure
: and reliable transacted Web services that integrate across platforms
: and interoperate with existing investments. Windows Communication
: Foundation combines and extends the capabilities of existing
: Microsoft distributed systems technologies, including Enterprise
: Services, System.Messaging, Microsoft .NET Remoting, ASMX, and WSE
: to deliver a unified development experience across multiple axes,
: including distance (cross-process, cross-machine, cross-subnet,
: cross-intranet, cross-Internet), topologies (farms, fire-walled,
: content-routed, dynamic), hosts (ASP.NET, EXE, Windows Presentation
: Foundation, Windows Forms, NT Service, COM+), protocols (TCP, HTTP,
: cross-process, custom), and security models (SAML, Kerberos, X509,
: username/password, custom).
: What is three major points in WCF?
: 1) Address --- Specifies the location of the service which will be
: like http://Myserver/MyService.Clients
will use this location to
: communicate with our service.
: 2)Contract --- Specifies the interface between client and the
: server. It's a simple interface with some attribute.
: 3)Binding --- Specifies how the two paries will communicate in term
: of transport and encoding and protocols.
: How can we host a service on two different protocols on a single
: Let’s first understand what this question actually means. Let’s say
: we have made a service and we want to host this service using HTTP
: as well as TCP. You must be wondering why to ever host services on
: two different types of protocol. When we host a service it’s
: consumed by multiple types of client and it’s very much possible
: that they have there own protocol of communication. A good service
: has the capability to downgrade or upgrade its protocol according
: the client who is consuming him.
: Let’s do a small sample in which we will host the ServiceGetCost on
: TCP and HTTP protocol.
: Once we are done the server side coding its time to see make a
: client by which we can switch between the protocols and see the
: results. Below is the code snippet of the client side for
: multi-protocol hosting.
: What is the difference WCF and Web services?
: Web services can only be invoked by HTTP. While Service or a WCF
: component can be invoked by any protocol and any transport type.
: Second web services are not flexible. But Services are flexible. If
: you make a new version of the service then you need to just expose a
: new end point. So services are agile and which is a very practical
: approach looking at the current business trends.
: For more information visit
Thanks for sharing, I would be interested in learning more about WCF and related new technologies...
I'm Brad Wang...
.NET Freelancer from China