Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: .net REST or Web Service

$
0
0
Re: .net REST or Web Service
.NET Development
Re: .net REST or Web Service
10/27/2012
04:00:11 AM
3MP08KW98 Show this entire thread in new window
Gratar Image based on email address
From:
Jim M
To:
Attachments:
None
Thanks Rick... Sorry for the jumbled question... Thanks for the answer and sample....

That's a lot of jumbled questions, Jim.

There are a lot of different ways to do this.

If you really just need one request create an ASHX handler and use JavaScript Serializer. Otherwise I'd recommend you look at using ASP.NET WebAPI. It's designed for REST services in mind and can get you your data in a number of different formats. MVC also works with automatic support for JSON results.

Here's an intro/overview article on WebAPI I wrote that gets you started:
http://www.west-wind.com/weblog/posts/2012/Aug/21/An-Introduction-to-ASPNET-Web-API

+++ Rick ---


I stay away from .NET as much as possible.. However I need I quick way to get data from MSSQL Server.. I don't want to connect to wconnect and then to the sql server.. but if it's just as fast as using a .NET web service or REST service I'll use wconnect..

What is faster at serving up JSON in .NET a Web Service or some sort of REST service for taking in AJAX requests then spitting out JSON? We have VS2010.. I haven.t used C# for some time.. I'll be using JavaScript in VS2012.. All I need is probably a 1 page "filename.aspx" to take request.. do the query.. spit out the JSON..

I guess with REST I really dont even need a page.aspx... Just some sort of listener? IHttpHandler? on a \folder...

Thanks
Jim




Viewing all articles
Browse latest Browse all 10393

Trending Articles