在WCF中使用net.tcp协议创建代理 [英] Create proxy using net.tcp protocol in WCF

查看:88
本文介绍了在WCF中使用net.tcp协议创建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
我想添加以下服务:
net.tcp://localhost:79996/WcfHost
但是我不能成功.但是我可以成功:
http://localhost:79996/WcfHost
请提出任何答案

Sir,
i want to add a service like:
net.tcp://localhost:79996/WcfHost
but i can''t success.but i can success in :
http://localhost:79996/WcfHost
kindly suggest any answer

推荐答案



我希望您尝试在Windows Services中而不是在IIS上托管该服务.如果您尝试使用IIS进行此操作,则由于IIS是Web服务器,因此将无法正常工作.为此,您需要使用WAS(Windows进程激活服务). NET TCP绑定是一种远程服务,因此您将无法为其创建代理类.您必须像在远程处理中那样使用客户端服务器方法.
以下URLS将提供有关它的必要信息.


在WAS中托管WCF:

使用多种协议在多个主机环境中托管WCF服务
http://msdn.microsoft.com/en-us/library/ms733109.aspx
http://msdn.microsoft.com/en-us/library/ff649818.aspx
Hi,

I hope you are trying to host the service in Windows Services and not on IIS.If you are trying to do the same using IIS,it will not work as IIS is a web server.For this purpose you need to use the WAS(Windows Process Activation Service).NET TCP binding is a kind of remoting service so you''ll not be able to create a proxy class for that.you have to use the client server method as we would do in remoting.
The Following URLS will give the necessary information about it.


Hosting WCF in WAS:

Host your WCF service with multiple host environment using multiple protocol
http://msdn.microsoft.com/en-us/library/ms733109.aspx
http://msdn.microsoft.com/en-us/library/ff649818.aspx


这篇关于在WCF中使用net.tcp协议创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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