What is the difference WCF and Web services?

 Posted by Raja on 6/7/2009 | Category: WCF Interview questions | Views: 103240

Web services can only be invoked by HTTP (traditional webservice with .asmx). While WCF Service or a WCF component can be invoked by any protocol (like http, tcp etc.) and any transport type.

Second web services are not flexible. However, WCF Services are flexible. If you make a new version of the service then you need to just expose a new end. Therefore, services are agile and which is a very practical approach looking at the current business trends.

We develop WCF as contracts, interface, operations, and data contracts. As the developer we are more focused on the business logic services and need not worry about channel stack. WCF is a unified programming API for any kind of services so we create the service and use configuration information to set up the communication mechanism like HTTP/TCP/MSMQ etc

For more details, read http://msdn.microsoft.com/en-us/library/aa738737.aspx

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Jaivardhan on: 4/21/2010
A good link for difference between Web-services and WCF is discussed at http://jai-on-asp.blogspot.com/2010/04/difference-between-web-services-and-wcf.html

Login to post response