Hosting Web Service/WCF Service?

2020-06-24 03:53发布

I'm new to Windows Azure and I'm trying to deploy my web application to Windows Azure. In my app I used some web services, now I would like to know how can I build them in windows azure and include that web reference in my web app?

Some tutorials said that I have to import my current web service into a Cloud Service Project as a WebRole but in my web serivce folder, there's no csproj file.

Thanks!

2条回答
Ridiculous、
2楼-- · 2020-06-24 04:44

I think you should use a WebRole for a web service, but you can use a WorkerRole though.

Take a look on this:

http://www.devproconnections.com/article/windows-azure-platform3/Hosting-WCF-Services-on-Azure-101.aspx

查看更多
你好瞎i
3楼-- · 2020-06-24 04:46

I found out that I just have to create a new Window Azure Project and add a WCF Service Web Role, copy my old files in the old Web Service (maybe change a little bit if it's ASMX) then host it the same way as web application. And voila, everything is ok now :)

查看更多
登录 后发表回答