在Asp.Net中的托管Windows服务中使用WCF服务 [英] Consume WCF Service that in a Managed Windows Service in Asp.Net

查看:72
本文介绍了在Asp.Net中的托管Windows服务中使用WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在托管Windows中写WCF服务和主机
但是无法从网站上调用它,我添加http:// localhost:1200 / 000WCF / service作为服务参考但是可以找不到它



这是我的项目:http://www.mediafire.com/download/mfewy952p6rpk5v/WCFService.zip

解决方案

下面这个链接可以帮到你。



i看到一些代码评论,这是创建一个WCF服务主机并打开所必需的相应的沟通渠道。



还有默认的基地址和binging需要检查(你需要wsHttpBinging吗?)。





WCF托管Windows服务 [ ^ ]

I write WCF service and host in a Managed Windows
but can't call it from a web site,i add http://localhost:1200/000WCF/service as service reference but can't find it

Here is my project : http://www.mediafire.com/download/mfewy952p6rpk5v/WCFService.zip

解决方案

May be this link below will help you.

i saw some code commented, this is required for create a WCF service host and open the communication channels accordingly.

also default base address and binging needs to be checked (do you need wsHttpBinging?).


WCF Hosting with Windows Service[^]


这篇关于在Asp.Net中的托管Windows服务中使用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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