ASP.NET: Web Service or WCF for simple ajax call?

I just want to simply call a method on my web service via ajax and have it return a value.

Should I use "WCF Service" , "AJAX-Enabled WCF Service" , or "Web Service"

Which is the easiest?

Answers


You should use Ajax-Enabled WCF service. I don't remember the name exactly but it should be marked with an attribute to be accessible from JS.


Use a generic HTTP handler instead. They are simpler to code.


Need Your Help

Repeating rows with bootstrap

jsf-2 jstl el facelets

I am attempting to format my site to nicely play with the bootstrap custom content component. Trouble is the xml is being parsed and doesn't like the fact that I haven't closed my div tag. This ass...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.