How to host WCF Data Service (OData) in IIS7?

坚强是说给别人听的谎言 提交于 2019-12-01 22:31:22

问题


Does anyone know how to host a WCF Data Service (or OData) inside IIS7? I'm seeing lots of articles about hosting WCF, but none specific to WCF Data Service.

Thank you very much.


回答1:


Hosting a WCF Data Service in IIS is actually the default option.

Its a pretty easy 3 step process:

  1. Create a new WebApplication project (or re-use an existing one)
  2. Add a WCF Data Service to the project
  3. Deploy to your IIS server

Step 3 is just the standard process for deploying a WebApplication to IIS.




回答2:


A WCF Data Service is just a WCF (REST) service, with some additional out-of-the-box functionality added in.

It has a *.svc file and all - it will be hosted very much the same as a "regular" WCF REST service.

So all the articles you see about WCF REST should really apply to WCF Data Services as well - or are you experiencing some difficulties with something specifically??



来源:https://stackoverflow.com/questions/3764469/how-to-host-wcf-data-service-odata-in-iis7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!