WCF Windows Communication Foundation in 5 minutes Part 1

Hello Friends,

Today I am going to discuss new topic which is WCF.

As you know today market demand is Services. Every company needed Service Oriented Architecture (SOA) and in SOA first and basic thing is communication for service so Microsoft provide a  new way of communication for services which is WCF. So let’s start with our questionnaires.

1. What is WCF?

Its full name is Windows Communication Foundation. It’s also called Indigo. Its basically introduce in Dot net 3.0.

WCF is new way of communication between client & server. Its technology by which a client & server can communicate with each other. It provides direct support for Service orientation. Its help in distributed application creation its work as separate layer for communication.

Or in other way we can say that its combination of

1) .Net Remoting


3) Web Services

4) COM +

Its basically provide Service.

The Mail dll for this is “System.ServiceModel.dll” and main Namespace Is ” System.ServiceModel”

In WCF there are 3 basic conceptual parts.

1) Services: – The Services are programs which respond to clients. They can send or receive Messages.

2) Client: – Client is that program which consume services the request for services. They either send messages or receive messages or both.

3) Intermediaries: – that’s server as bridge between client & services as shown in below fig.


2. What’s advantage?

Now as a human tendency you will think “Why?”  While we have Dot net Remotings, Web Services MSMQ, DCOM then why Microsoft introduces the “WCF” indigo.

So I will say that Microsoft Sees future. Now the era is For SOA (Service Oriented Architecture). So that’s the time demand to come with solid technology which can communicate Dot net to dot net application  + dot net to Other language Application too.

When you talking about dot net to dot net application then in that case Remoting is perfect.

But when you talking about dot net to other application Web Services is perfect. But when you talking about both the things at same time then?

At that time WCF is most perfect.

Now here if you go in deep Remoting use TCP/IP protocols for communication & web services stick with SOAP or http.

So Microsoft takes WCF in picture which is much flexible.

Other than that there are few more advantages

SOA: – Its provide Service Oriented Architecture. It provides developer to make just a simple Config base communication model.

 So just define your services and use those services according to you.

Interpretability: – WCF provide Interpretability. It integrates with other technologies also and gives great way to work with them.

Ws-* :- WCF follows Ws-* specification  which are define by Microsoft, SUN, IBM and many other big company together so that they can expose there services with common protocol.

3. Necessary component?

There are following WCF which are as below:-

1) Contract Definition: – A Service must have a service contact. It can contain multiple Service contract, Data Contract or operational contract.

2) End point Definition: – Address binding contract for binding necessary

3)  Hosting code: Some hosting code needed to create service & start services

In other word we can say service class also needed.


4. How it works?

To understand the WCF you have to learn ABC doesn’t laugh on it: D. Here ABC means Address Binding Contact.

 Here A- Address says where there is service or which services we have to contact.

        B- Binding says How to contact with services which ways we have to connect.

       C- Contract means what part of services which we have to access.


We will study in detail in my next post with sample code.

So just wait for 2nd part of this till than

Thanks & Esteemed Regards


How to make money by your website? Part -I


“Money” wao after having this everything is going smooth in life but the thing is how to make money.

yup this is the bigger question after doing a lot of hard work but still we getting same amount. so here i am  for giving you some extra tips how to make some money.

Actaually internet gives us lots of ways to make money in that  ways i will mention  here some of the links  which is useful and helpfull in revenue genrate.

so my first link is

1) www.rentAcoder.com :-
The  Rent A coder  is  the site which provide you a way to grabe online project  and you don’t have time to work on project then you can just use affilation programs by which you can also  or make money.

for more help click below image

2) www.GetAcoder.com :-
My another link is www.GetAcoder.com 
 From this site also you can earn money by grab projects do online project. and same if you don’t want to work on projects then just use affilation programs  by which you can also earn money.

for more help click on below image
Get custom programming done at GetACoder.com!

3) www.getAFreeLancer.com
Another most popular link in www.getAFreeLancer.com
On this web site you can get lots of project in diffrent language.
but if you don’t have money and wana earn money then just use affilation programs.
for more information just click the below image.
Freelance Jobs

I will provide many more useful sites in next post.

Thanks & Regards
Rajat Jaiswal

User Define Function Problems in SQL Server

Hello Friends,

First of all sorry for such a late post it just because I have lot of tension now a days 🙂

So today we start a new topic in which I stuck User Define Functions in SQL Server.

By the name use think User Define function is so easy just like store procedure.

So I will yes it just like sql server but it has some limitaion which I am facing.

These are

1)We can not use try catch Block in User define functions.

2) We can use Execute sp_ExecuteSQL in UDF.

3) we can not use Execute(sqlStatement) in UDF.

4) we can not use getDate() in UDF.

5) we can not call a store procedure however we can call extended store procedures.

6) We can not User Temporary table in UDF.

The solution of it which I used made a CLR function.

If you found another solution than share it with me.

Enjoy programming 🙂

Enjoy Sql Server 🙂

Thanks & Regards

Rajat Jaiswal