REST services using .Net 2.0 infrastructure and REST in javascript

according to wikipedia REST terms

REST can be considered an architectural style for the entire Web world. An architectural style developed in parallel with the HTTP / 1.1 protocol, based on an existing HTTP / 1.0 project

REST practice began a long time ago, along with the development of HTTP. If I understand defenetions correctly, we can use existing technologies and create REST services on it.

My requirement is to create RESTFul services on top of .Net 2.0 (I know this can be easily implemented in WCF, but at the moment I don't have that luxury).

  • is it possible?

  • if possible, working examples ..

  • Are there blogs on the Internet or online posts covering the implementation of this approach? ..

EDIT:

I forgot to mention this.

  • Is it possible to use REST services from javascript.

Thanks at Advance

+3
source share
4 answers

There is a book restful.net

Try this for the client: http://developer.yahoo.com/dotnet/howto-rest_cs.html for example

edit: to reflect the comment:

I found this article on how to make a sedative serivce with http handlers.

And how to consume through javascript .

+3
source

In addition to scrolling native Http modules, there are 3 main tools that I know for implementing REST services.

  • WCF - , . Microsoft WCF Starter Toolkit, .
  • OpenRasta - . simpiler, WCF. , .
  • ASP.NET MVC - REST- REST. .
+1

, .

.

http://www.codeproject.com/KB/webservices/REST_Web_Service.aspx

, REST javascript - json.

javascript , json, json.

+1

I built my own REST structure on top of the HttpListener and ran it in a Windows service. Easy enough to get the basic stuff. However, over time, you will need a lot of infrastructure code to support all aspects of HTTP. If you are starting from scratch, check out OpenRasta. This will lead you to the right path and save you a lot of time.

+1
source

Source: https://habr.com/ru/post/1716094/


All Articles