Dennis van der Stelt

I care about technology; I care about users more

Community

Email Notifications

News

  • Addicted to Refactor! Pro
    <div class="sideNavItems">

I read...

I Use...

Tags

Recent Posts

Archives

Blog Subscription Form

  • Email Notifications
    Go

WCF Part 1 : Services ABC

I want to begin with a conceptual explanation about services. A service always has at least one endpoint, but can have multiple. A client normally communicates with only one endpoint. A plain-old-webservice only has one endpoint and communicates via HTTP and Text/XML. The picture below shows a service with three endpoints. Notice the ABC.

wcfabc.png

 There are a few articles about the WCF ABC's (1, 2)but the short story is that you always have to remember:

  1. A stands for Address
  2. B stands for Binding
  3. C stands for Contract

I'll try to explain them, they'll get more sense once we advanced in posts.

  1. Address
    Every website and webservice has an address, like http://bloggingabout.net/ or http://mydomain.com/stockquote.asmx. Our WCF services also must have an address. WCF can provided addresses for the following protocols:
    1. HTTP
    2. TCP
    3. NamedPipe
    4. Peer2Peer
    5. MSMQ
  2. Binding
    A binding specifies how a service is accessible. Think transport protocol (see the previous list that shows the basic list), encoding (text, binary, etc) and WS-* protocols like transactional support or reliable messaging.
  3. Contract
    The contract is something you completely specify by yourself. The contract is used to specify what your service can do. For example give you the correct streetname and city when providing a zipcode.

In the next articles I'll explain how you can build a service while using the ABC.

[Go to the WCF series article index]

Comments

Community Blogs said:

Dennis van der Stelt posted some fine articles about Microsoft's new way of doing communication between

# November 10, 2006 2:48 AM

Farzam said:

this is completely brief and useful article ...

thanks a million  

# December 25, 2009 9:28 PM

Dennis van der Stelt said:

The previous post was the most simple example of creating a WCF service and calling it from a client

# June 19, 2010 10:25 PM

John Daniel (JD) said:

Nice Article. Simple and veryuseful

# September 14, 2010 10:56 AM

walkincg said:

Good article. Simple to understand

# September 16, 2010 4:04 PM

Ganesh said:

This is a simple and easy way to start with WCF. Thanks

# September 23, 2010 10:41 AM

Shiva said:

Nice Article.Easy to understand.

# July 18, 2011 12:24 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 1 and 1 and type the answer here: