[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1801
  • Last Modified:

wcf vs web service

Can someone please tell me the difference between wcf and a web service (please don't post a microsoft link, I already looked there).  

I really don't understand how it would help at all if you are going over the web.  It seems to me the only difference is that you can speficy the protocol that it uses.  I watched the first three examples here:  http://social.msdn.microsoft.com/content/en-us/msft/netframework/wcf/Screencasts.  

He created a wcf project, played with it in visual studio, then he hosted it in iis.  If you are hosting it in iis, isn't it going to be using http anyway?

So can someone please tell me what benefits this technology has?

Thanks
0
jackjohnson44
Asked:
jackjohnson44
  • 2
2 Solutions
 
williamcampbellCommented:
Standard Web Services use SOAP (XML Envelope) to Communicate.

With WCF you are not tied to SOAP you can send and receive any format you want, JSON, XML, Raw Bytes  etc

WCF also allows you to create Restful interfaces such as this

 http://yoursite.com/user/william/campbell/getaddress

and return a block of XML

So that's basically it Tied to SOAP or the world's your oyster :)

Personally I would suggest that you look at the new MVC framework coming out and skip WCF altogether.

wc
0
 
Anurag ThakurCommented:
0
 
jackjohnson44Author Commented:
Thanks guys, I appreciate the help.

William, can you please explain what you meant when you mentioned MVC?  I have heard the term, but I do not know how it applies in this scenario.
0
 
williamcampbellCommented:
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now