WCF Endpoints

Introduction

WCF Endpoint is defines how WCF client will interact with WCF service,This article describes details about WCF Endpoint and the elements of Endpoint available.

Getting Started

WCF Endpoint contains the details of the WCF service, like where the service resides (address), how to access it and what the WCF service exposes to the client. Every service must have an address defining the service's residence, a binding that defines how a client communicates with the service and a contract that defines what the service does. The combination of Address, Contract, and Binding is called an endpoint. The elements of an endpoint are called A, B and C as in the following.

Elements of an Endpoint

  1. Address

    The address defines where the service resides, it's how the client determines where a service is located. Every service has a unique address, the address format of WCF is as in the following.

     [Transport] ://[Domain Name]:[Port]//[Service Name]  
    
    Example-1 : HTTP Address Format
     http://localhost:80//Myservice.cs  
    
    Example-2 : TCP Address Format
     Net.tcp//localhost:80//MyService.cs  
    

  2. Binding

    WCF has a couple of built-in bindings that are designed to fulfill some specific needs. You can also define your own custom bindings in WCF to fulfill your needs. All built-in bindings are defined in the System.ServiceModel Namespace. Here is the list of 10 built-in bindings in WCF that we commonly use.

  3. Contracts

    The WCF contract defines what a service does or what action a client can perform in a service. The contract is one of the elements of WCF endpoints that contain information about the WCF service. The contract also helps to serialize service information. These are the types of contracts available in WCF service, Service Contract, Data Contract, Fault Contract and Message Contract.

Related Articles

  1. WCF Address
  2. WCF Contracts
  3. WCF Bindings

Summary

In the above of this article we have discussed about the WCF endpoint and the elements of endpoint, hope you have got the detail of this discussion.

Thanks

Kailash Chandra Behera

An IT Professional with 12 years experience in development life cycle in windows, service and Web based application using Microsoft.Net technologies. Proven record of developing all phases of projects in Microsoft.Net technology from initiation to closure aligning with the company's Business objectives to drive process improvements, competitive advantage and bottom-line gains. -> Good exposure of independently working and developing multiple projects ->Committed to efficient and effective development of projects in a fast-paced and deadline driver environment. Skill :- Develop and design projects in various technologies of Microsoft Technology. Total IT Experience- 13+

Previous Post Next Post

نموذج الاتصال