Alon1980
Alon1980

Reputation: 1267

Can i combine WCF and WebApi?

I want to host on the same website WebApi endpoints (RESTfull off course) and WCF endpoints (SOAP). I know it can be done if you do it all in WCF.

The question is - can i mix both technologies in the same website?

Thanks!

Upvotes: 3

Views: 1160

Answers (1)

tongko
tongko

Reputation: 149

You can have both technologies under same website, provided there are in different virtual directory. For example you can place your api under "~/api" and your WCF service in "~/service". In such a case, both can co-exists.

Upvotes: 2

Related Questions