Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Samples for RESTful web services for WCF

Tags:

rest

c#

wcf

I am new to RESTful web services in WCF, but not new to WCF. I want to develop some simple RESTful web services in WCF which manually be accessed from a browser. Any good samples or documents to recommend? I am using C#.

like image 654
George2 Avatar asked Jun 11 '09 09:06

George2


People also ask

Is it possible to use RESTful services using WCF?

You can use WCF to build RESTful services in . NET. REST (Representational State Transfer) is an architecture paradigm that conforms to the REST architecture principles. The REST architecture is based on the concept of resources: It uses resources to represent the state and functionality of an application.

What is difference between WCF and RESTful services?

WCF is used for developing SOAP-based services whereas Web API is used for both SOAP-based and RESTful services. WCF does not offer any support for MVC features whereas Web API supports MVC features. WCF supports HTTP, UDP, and custom transport protocol whereas Web API supports only HTTP protocol.

Is WCF RESTful or SOAP?

By default, Windows Communication Foundation (WCF) makes endpoints available only to SOAP clients.


1 Answers

Aaron Skonnard of PluralSight has a bunch of great little screencasts on Channel9 and is probably the best intro I've seen - you'll probably do well to have some WCF experience first - those coming from the world of SOAP will pick it up easier.

http://channel9.msdn.com/shows/Endpoint/endpointtv-Screencast-Building-RESTful-Services-with-WCF/

Also, stick this in Bing

restful site:msdn.com

UPDATE

This answer still gets votes, so I thought it would be good to update it with recent changes. Basically, the WCF team have joined forces with the ASP.NET MVC community to bring REST to the Microsoft stack via ASP.NET MVC 4 Web API, so I guess the WCF REST stuff will not be developed from 2012 on.

http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API

like image 175
Luke Puplett Avatar answered Oct 13 '22 01:10

Luke Puplett