Reputation: 5089
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.
Upvotes: 2
Views: 4364
Reputation: 23615
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.
Upvotes: 1
Reputation: 26628
Simply add a WCF service endpoint (.svc file) to your MVC application.
Upvotes: 3