简体   繁体   English

.NET Restful WCF Http Web Service for use w/ ASP.NET MVC3 and anything else

[英].NET Restful WCF Http Web Service for use w/ ASP.NET MVC3 and anything else

I am building a big ASP.NET MVC3 web site.我正在构建一个大型 ASP.NET MVC3 web 站点。 I am going to hit a big backend database and have lots of webservices.我将访问一个大型后端数据库并拥有很多 Web 服务。 I plan on exposing the webservices publicly down the line as an restful API that will consume/return JSON or XML.我计划将 web 服务公开公开为一个安静的 API,它将消耗/返回 JSON 或 XML。

Would it be best to keep my webservices as a completely seperate project and should I use pure WCF for them?最好将我的 web 服务作为一个完全独立的项目,我应该为它们使用纯 WCF 吗?

Thanks for any advice.感谢您的任何建议。

I would certainly consider keeping the Services project separate from the Web Site Project.我当然会考虑将服务项目与 Web 站点项目分开。

As for which framework to use I would check out the WCF HTTP project , OpenRasta , or straight .NET MVC.至于使用哪个框架,我会查看WCF HTTP 项目OpenRasta或直接 .NET MVC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM