views:

305

answers:

2

Hi!

I have an ASP.NET MVC 1.0 webapp, which serves as a front-end site for our external API. More specifically, it has a Control Panel for our API clients, documentation, etc.

Now I want to move our actual API (which is a set of WCF services) inside this project, so that, for example, http://api.example.com/controlpanel/dashboard would be served by ASP.NET MVC runtime, wherease http://api.example.com/services/1.0/users.svc would be served by an appropriate WCF service.

Granted, this can be done by adding a services/1.0 virtual folder in IIS, but I really want these two parts to be inside one project.

Is this doable at all? If yes, how do I integrate these two beasts?

+1  A: 

Looks like I'm onto something: Hosting WCF Side-by-Side with ASP.NET.

Anton Gogolev
That appears to talk about ASP.NET applications, rather than ASP.NET MVC applications. In particular, I'm interested in how you get WCF to play nicely with routing in MVC.
Roger Lipscombe
You probably just want to add an ignore route for your WCF paths.
Todd Smith