开发者

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

开发者 https://www.devze.com 2023-01-27 11:28 出处:网络
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.开发者_如何转开发)

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

精彩评论

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