开发者

WCF web API hosted in IIS

开发者 https://www.devze.com 2023-03-19 04:02 出处:网络
I want to try out WCF web API. My plan is to create an application hosted on IIS that runs by itself (not combined with an MVC 3 application, etc开发者_JAVA百科). Maybe I\'ll give it an address http:/

I want to try out WCF web API. My plan is to create an application hosted on IIS that runs by itself (not combined with an MVC 3 application, etc开发者_JAVA百科). Maybe I'll give it an address http://192.168.1.2/myapi.

How do I set up my project from the beginning?

Which project template should I choose? WCF service application, ASP.NET empty web application, or what?

Then I guess I should nuget WebApi.All?

Then I should edit web.config?

Then I should put something in global.asax?

What else?


I've posted a getting started series on WCF Web API: http://blog.alexonasp.net/post/2011/04/15/Microsoft-Web-API-e28093-the-REST-is-done-by-WCF-(Part-1).aspx


You may take a look at the following post, where I describe how to host WCF Web API with IIS - http://pfelix.wordpress.com/2011/04/22/wcf-web-apiiis-hosting/

0

精彩评论

暂无评论...
验证码 换一张
取 消