Saxman
Saxman

Reputation: 5089

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.

Upvotes: 2

Views: 4364

Answers (2)

Michel
Michel

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

quentin-starin
quentin-starin

Reputation: 26628

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

Upvotes: 3

Related Questions