Home > WCF > WCF # 1 – WCF Introduction (ENDPOINTs)

WCF # 1 – WCF Introduction (ENDPOINTs)

Hi Friends ,

Today we will  see a very interesting technology called WCF.

Many people are confused about what exactly WCF is and how it matters.

** What is WCF ?

WINDOWS COMMUNICATION FOUNDATION (WCF) is all about services. It’s about creating, hosting, consuming and securing them. It’s about standards and interoperability.

** Why WCF matters ?

Before going ahead we will see why WCF is very important.

1) WCF is very important and the easiest way to produce and consume services on  MICROSOFT platform

2)WCF developers can focus more on the application rather than the communication protocols those are required for a  web service.

3)As we know for getting into a new technology first we need to be familiar with the set of terms ,concepts with the help of which we can be productive for that particular technology.

** ENDPOINT in WCF

* At its core, a service is a set of endpoints that provide useful capabilities to clients.

* An endpoint is simply a resource on the network to which messages can be sent.

* Clients access these capabilities by sending messages to the endpoints, formatted according to the contract agreed on by both the client and the service.

* Services listen for messages on the address specified by the endpoint and expect the message to arrive in a particular format. Following figure shows the basic relationship between client and service.

image

 

For the client to communicate meaningful information to the service, it
needs to know the ABCs: the address, the binding, and the contract.

• “A” is for address, the where. It defines where on the network messages should be sent so that the endpoint receives them. This is the location to which messages must be sent by the client. For HTTP, the address would look like http://myserver/myservice/; for TCP, it
would look like net.tcp://myserver:8080/myservice.

• “B” is for binding, the how. The binding defines the channel used to communicate with an endpoint. Channels are the conduit through which all messages pass within a WCF application. A channel is composed of a series of binding elements. The lowest level binding
element is the transport, which delivers messages over the network. The built-in transports include HTTP, TCP, Named Pipes, PerChannel, and MSMQ. Above this are binding elements that specify security and transactions. Fortunately, WCF ships with system-provided bindings that have the channels stacked and con-figured correctly to save you the time of figuring it out yourself.The facilitates communication with most Web services built prior to 2007. It corresponds to WS-I BP 1.1 and is included for its widespread interoperability. The implements the common WS-* protocols to enable secure, reliable, and transacted messaging.

• “C” is for contract, the what. It defines the capability, or feature set, offered by the endpoint. The contract defines the operations that an endpoint exposes and the message formats that the operations require. Contract operations map to class methods that implement the endpoint, including the signature of parameters passed in and
out of the methods.

* A WCF service may composed of multiple endpoints as shown in the figure below

image

* A service endpoint cannot respond to messages until the service is hosted in a running operating system process. The host can be any process,such as an unattended server process, a Web server or even a client application running full screen on a desktop or minimized in the Windows tray.

* Services have behaviors that control their concurrency, throttling, transactions, security, and other system semantics. Behaviors may be implemented using .NET attributes, by manipulating the WCF runtime, or through configuration. Behaviors, in conjunction with a flexible hosting model, greatly reduce the complexity of writing multithreaded code.

Hope this will help u in having a introduction to WCF.

Thank you,

Have a great time ahead!!!!

Advertisements
Categories: WCF
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: