如何运行WCF服务? [英] how to run WCF service ?

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

问题描述



我与Windows窗体一起创建了一个WCF服务.我以形式调用了该服务,它运行得很好.但是有什么方法可以手动运行服务以进行测试吗?

只有我正在尝试提供服务参数并获得结果.


请咨询...

Hi,

I created one WCF service along with the windows form. I called the service in form, it runs very well. but is there any way to run a service manually to test??

only i am trying to provide the parameters to service and get the results.


please advice...

推荐答案

您必须将WCF服务托管在某个地方.您可以通过IIS,自托管,Windows服务,WAS等来托管它.

如果您的应用程序是Win Form应用程序,则必须运行该应用程序以启动wcf服务(自助服务).

如果您的应用程序是控制台,则可以将其安装在Windows服务中.请检查 http://msdn.microsoft.com/en-us/library/ms733069.aspx [ ^ ].

在Windows Services方案中,您可以从Microsoft管理控制台手动启动/停止服务.
You have to host your WCF service somewhere. you can host it through IIS,self hosted,Windows service, WAS etc.

if your application is win form application then you must run your application to start wcf services (Self hosted service).

If your application is console then you can install it in windows service. Please check http://msdn.microsoft.com/en-us/library/ms733069.aspx[^].

In windows services scenario, you can start/stop your service manually from Microsoft management console.


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

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