Difference between WCF Web API and WCF Data Services
Asked Answered
A

1

11

What is the difference between WCF Data Services and WCF Web API?

Ariel answered 27/4, 2011 at 20:13 Comment(0)
F
5

WCF Data Services is a framework on top of WCF that makes it easy to create RESTful services that "talk" Atom/OData based on specified LINQ context (object model, LINQ2SQL or Entity Framework).

The new WCF Web APIs are currently under development, and will enhance the existing WCF framework to build better HTTP/RESTful services in general.

--larsw

Freezing answered 28/4, 2011 at 9:57 Comment(3)
so for http ajax requests one would choose the wcf web api? The demoes I saw with data services at mix11 just used an url so when to choose what?Ariel
you can use ajax against both kinds of services - WCF DS can also return JSON. There's a specific library for working against OData services that can be found here: datajs.codeplex.comFreezing
Maybe we can add this as well: "WCF Data Services runs on top of WCF as described but WCF Web API runs on top of ASP.NET but it can be also self-hosted if configured"Nigh

© 2022 - 2024 — McMap. All rights reserved.