
The following is the contents of this article:
- Introduction
- The requirements to create an ENDPOINT
- What an Address is
- Brief on Binding
- Summary
Introduction
In earlier days a developer needs to do a lot of ground work to shape the communication architecture between the components, but now Microsoft provides WCF, a flexible programming framework that abstracts a lot of complexity in creating the services. So the communication foundation is already laid/available for the developers. It allows the developers to only concentrate on the problems. One of the finest benefits I saw in WCF is that the same business logic could be implemented in various protocols and transport options. So that your service can be exposed to any type of client.
Endpoint in WCF
With a simple and elegant example, I will just try to explain endpoints in WCF. Imagine that you are trying to send a birthday gift to your beloved ones living near your city. What exactly is the information you really need to send away? The first and foremost is the address, where the gift needs to be delivered. And the second one is how will the gift be transmitted? What are all the transport options available to reach that address? By train or bus? And the last one you must know what is the content you are transmitting. What type of goods is it? Yes in WCF to define an endpoint ABC is required to establish the communication. A stands for Address, B stands for Binding and the C stands for Contract. Please try to match the ABC with the example I mentioned above, then you will understand what I mean. Anyway, we will discuss this topic in detail here. Once you define the ABCs, everything will be taken care of by WCF.
Address
A: Address
Where exactly os your service hosted? In other words, what is the location of the service? An address could be an IP Address, server name, URL and so on.
The preceding is the format of an address. Whereas the first part is the transport schema, in our case HTTP is the transport schema, whereas the second part is the server location. In our case OnlineShoppingServer.com is the server location. And the next part is the PORT number where the server is listening for incoming requests. And the final part is the relative location of the resource on the server.
| Transport Protocol | Example Address |
| HTTP | http://localhost:8001/Service |
| HTTP (Secure) | https://localhost:8001/Service |
| TCP | net.tcp://localhost:8001/Service |
| PEER network | net.p2p://localhost/ |
| Named Pipes | net.pipe://localhost/Service |
| Microsoft Message Queue (MSMQ) | net.msmq://localhost |

Pankajkumar PatelPosted Sep 9, 2019, 1:24 AM
Nice article
SubashPosted Sep 26, 2016, 12:38 AM
Good one
Muhammad UsmanPosted Dec 3, 2015, 1:21 AM
nice One Ramesh
priyanka sahuPosted May 25, 2015, 6:08 AM
good one...
daniel amosePosted Dec 18, 2014, 7:25 AM
nice article .. :)
Vithal WadjePosted Sep 24, 2014, 11:10 AM
super one keep it up
Shiju JosephPosted Jul 22, 2014, 1:09 AM
Good article ...!!