开发者

Build a Web Service API (SOAP) inside MVC app?

Can anyone help me on how to build a web service api (soap) inside an MVC app? WCF is fine :) (initially, WCF is not an option.开发者_如何转开发)

Thank you very much.


Simply add a WCF service endpoint (.svc file) to your MVC application.


You can add a webservice to your mvc app, it (mvc) is asp.net after all.

If it's in the root of your app you can just call it (the webservice), if you put it in a subdirectory i think you have to create an ignore route (like the default one routes.IgnoreRoute("{resource}.axd/{*pathInfo}");), but i'm not sure if the ignore route is necessary.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜