views:

1501

answers:

3

What is the difference between them?

When would I opt for one over the other?

A: 

Check out the other discussion here for more info...

http://stackoverflow.com/questions/50114/wcf-wtf-does-wcf-raise-the-bar-or-just-the-complexity-level

MattK
+3  A: 

Look here.

Summary of article:

"Basically, WCF is a service layer that allows you to build applications that can communicate using a variety of communication mechanisms. With it, you can communicate using Peer to Peer, Named Pipes, Web Services and so on.

You can’t compare them because WCF is a framework for building interoperable applications. If you like, you can think of it as a SOA enabler. What does this mean?

Well, WCF conforms to something known as ABC, where A is the address of the service that you want to communicate with, B stands for the binding and C stands for the contract. This is important because it is possible to change the binding without necessarily changing the code. The contract is much more powerful because it forces the separation of the contract from the implementation. This means that the contract is defined in an interface, and there is a concrete implementation which is bound to by the consumer using the same idea of the contract. The datamodel is abstracted out."

... later ...

"should use WCF when we need to communicate with other communication technologies (e,.g. Peer to Peer, Named Pipes) rather than Web Service"

nzpcmad
For any new project based on SOA approach, Developer should select WCF over webservices. Because it gives the flexibility and scalibility for future use.There is only one exception: if the client doesn't support communication with wcf services i.e. Flash AS2.
Lalit
A: 

A good link for this is here

This would explain the differences between the two.

HotTester