如何部署Web服务? [英] How can I deploy web service?

查看:63
本文介绍了如何部署Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Visual Studio 2010部署Web服务.

感谢您的帮助.

How can I deploy webservice using Visual Studio 2010.

Thanks for any help.

推荐答案

一个不错的起点是浏览下面的资料:
Windows Communication Foundation [使用ClickOnce部署WCF应用程序 [如何:在IIS中托管WCF服务 [如何:在WAS中托管WCF服务 [如何:在托管Windows服务中托管WCF服务 [如何:在托管应用程序中托管WCF服务 [如何:在运行.NET Framework 4的IIS中托管由.NET Framework 3.5编写的WCF服务 [ ^ ]

更新:其他操作方法"
如何:创建基本的WCF Web HTTP服务 [如何:向SOAP和Web客户端公开合同 [如何:创建使用WCF Web HTTP编程模型返回任意数据的服务 [ ^ ]
如何:使用WCF REST编程模型创建接受任意数据的服务 [ ^ ]
如何:创建支持AJAX的WCF服务和访问该服务的ASP.NET客户端 [ ^ ]
如何:在不使用配置的情况下添加ASP.NET AJAX端点 [如何:使用配置来添加ASP.NET AJAX端点 [如何:在ASP.NET AJAX端点的HTTP POST和HTTP GET请求之间进行选择 [ ^ ]

服务的部署取决于您如何托管服务.基本上,对于所有托管情况都是相同的-将文件复制到需要的位置,并更新配置以反映所有必需的更改.

最好的问候
Espen Harlinn
A good place to start would be by going through the material found here:
Windows Communication Foundation[^]

This may be of interest: Deploying WCF Applications with ClickOnce[^]

Then there is a number of how-tos'':
How to: Host a WCF Service in IIS[^]
How to: Host a WCF Service in WAS[^]
How to: Host a WCF Service in a Managed Windows Service[^]
How to: Host a WCF Service in a Managed Application[^]
How to: Host a WCF Service Written with .NET Framework 3.5 in IIS Running Under .NET Framework 4[^]

Update: additional how-tos''
How to: Create a Basic WCF Web HTTP Service[^]
How to: Expose a Contract to SOAP and Web Clients[^]
How to: Create a Service That Returns Arbitrary Data Using The WCF Web HTTP Programming Model[^]
How to: Create a Service That Accepts Arbitrary Data using the WCF REST Programming Model[^]
How to: Create an AJAX-Enabled WCF Service and an ASP.NET Client that Accesses the Service[^]
How to: Add an ASP.NET AJAX Endpoint Without Using Configuration[^]
How to: Use Configuration to Add an ASP.NET AJAX Endpoint[^]
How to: Choose between HTTP POST and HTTP GET requests for ASP.NET AJAX Endpoints[^]

Deployment of the service depends on how you are hosting the service. Basically it''s the same for all hosting cases - copy the files to where they need to be, and update the configuration to reflect any required changes.

Best regards
Espen Harlinn


这篇关于如何部署Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆