Hosting Web Service/WCF Service?

╄→гoц情女王★ 提交于 2019-12-09 13:40:00

问题


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!


回答1:


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 :)




回答2:


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



来源:https://stackoverflow.com/questions/5388806/hosting-web-service-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!