Question

I' deploying two services, one of them is a website and the another is a WCF Service for desktop applications.

I have one web site called contoso2.azurewebsites.net and that place I place my web site, but also I would like to deploy my WCF service, the question is... I need to create another web site service to deploy in it? Or it can be in the same place?

Was it helpful?

Solution

I think you can. If you have an ASP.NET web application, you can add some .svc files for your WCF service. They will be deployed as part of your web site. Then you can use your website through http://contoso2.azurewebsites.net/ and use your web service through, let's say http://contoso2.azurewebsites.net/api/ProductService.svc

OTHER TIPS

Combining your website and services into one application is possible, but you can also host them in two seperate sites within the same web role.

You basically have to:

  1. Create a cspack with multiple sites
  2. Map the internal IP address of the machine to a DNS of your choice in the hosts file when the role starts

More details and scripts on my blog: http://thomassmets.wordpress.com/2013/01/21/a-web-frontend-with-a-wcf-backend-in-azure/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top