简体   繁体   English

托管Web服务/ WCF服务?

[英]Hosting Web Service/WCF Service?

I'm new to Windows Azure and I'm trying to deploy my web application to Windows Azure. 我是Windows Azure的新手,我正在尝试将我的Web应用程序部署到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? 在我的应用程序中,我使用了一些Web服务,现在我想知道如何在windows azure中构建它们并在我的Web应用程序中包含该Web引用?

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. 一些教程说我必须将当前的Web服务作为WebRole导入Cloud Service Project,但在我的web serivce文件夹中,没有csproj文件。

Thanks! 谢谢!

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. 我发现我只需要创建一个新的Window Azure Project并添加一个WCF Service Web Role ,将我的旧文件复制到旧的Web服务中(如果它是ASMX可能会稍微改变一下)然后以与Web应用程序相同的方式托管它。 And voila, everything is ok now :) 瞧,现在一切都好了:)

I think you should use a WebRole for a web service, but you can use a WorkerRole though. 我认为您应该使用WebRole进行Web服务,但您可以使用WorkerRole。

Take a look on this: 看看这个:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM