1
votes

I have created a "Windows Azure Cloud Service" project in VS2012.2 with a MVC4 web role. When I run up the project it just gives me a web page. I am trying to develop a web service back-end for my website so I want to be able to call web methods directly from my website which is also running in on Azure.

When F5 my project it just gives me a website. Should I be using a worker role instead of a web role?

3

3 Answers

0
votes

If you put your back-end web service along with your web role, then you can use it directly.

If you put your service in a worker role, then you need to open an input endpoint on your worker role so that it can be connected from out side of azure.

Or, you can create another website for your service and map to a virtual dictionary/application on your web role.

0
votes

You may use both, but a web role is easiest as it sets up everything for you.

0
votes

Its better to use web role in your scenario, the reason being publishing a web role is pretty straight forward.