Answer the question
In order to leave comments, you need to log in
Simple restful web service
Tell me how, under Windows (preferably under .Net), you can quickly, easily and naturally raise a very simple restful web service for use in the intranet? Preferably using something scripted (powershell, for example, googled but didn’t find anything sensible).
Here is something similar, but everything is too fancy - habrahabr.ru/company/netwrix/blog/166799/
Answer the question
In order to leave comments, you need to log in
Everything is very simple, for this you will need a Windows computer, the Internet Information Services component installed from the control panel, Visual Studio (you can get the free version of Visual Studio Express for Web here ), hands and this simple and intelligible example . There will be more questions - write :)
A lot has changed since then. No need to mess with WCF. If you just need it, then it will be an overkill. For restful web services there is www.asp.net/web-api . Everything is generally simple there. Return an object from the controller, and everything else, including serialization (in json or xml), is done by .net for you.
If you return IQuerable, you will also get OData support out of the box www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question