Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all ,

Isn't wcf a webservice?and if not by what does it differ.

Note :i have read articles and searched on google but unfortunately,everyone writing blogs about the differences is not making things clear.So i hope that someone tell me by what they differ without giving me links.

Thanks in advance.
Posted

WFC is a transport layer that allows a web service to communicate with clients.
 
Share this answer
 
Comments
mhamad zarif 2-Sep-11 16:32pm    
So the scenario is in this way : i write a webservice.And then i write a wcf to allow people from other sites to use my webservice by giving them access to a certain web method in my webservice.Is that true ?
#realJSOP 2-Sep-11 18:33pm    
Not exactly. WCF is a transport layer and can be connected to anything, including a web service. When used together, it's called a WCF web service (or sometimes just a WCF service).

WCF is an 'higher' level programming model compared to Web services.

One example (not the only one) is the transactionality of the WCF: http://msdn.microsoft.com/en-us/library/ms733904.aspx[^]
 
Share this answer
 
Comments
mhamad zarif 2-Sep-11 16:42pm    
So the scenario is in this way : i write a webservice.And then i write a wcf to allow people from other sites to use my webservice by giving them access to a certain web method in my webservice.Is that true ?
Wendelius 2-Sep-11 16:53pm    
Not quite. You don't do this separately. Here's one quite good walkthrough: http://www.programminghelp.com/programming/dotnet/wcf-creating-and-implementing-a-service-in-c/[^]
Philippe Mori 2-Sep-11 18:41pm    
If you only want do create a web service, you don't have to use or learn WFC. For example, it is easy to create a web service that run on IIS and to use that service from a web page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900