通过互联网进行NetTcp绑定??? [英] NetTcp Binding over internet ???

查看:79
本文介绍了通过互联网进行NetTcp绑定???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是WCF的新手,我对WCF中提供的不同绑定类型完全感到困惑.原因是大多数Internet上的人都没有给出概述,而不是我们可以使用这些绑定的实际情况.

我的问题是,我们可以在Internet上使用 WCF NetTcpBinding 吗?

实际上,我正在开发需要发布Web服务(WCF)的应用程序通过使用WCF NetTcpBinding 绑定是可能的.

,谁能告诉我WCF NetTcpBinding与其他绑定相比有什么好处.


请给我建议.

Hi all,

  I am new in WCF i am totally in dilemma regarding the different type of binding given in WCF. the reason is that most of people over internet giving their overview not the actual scenario where we can use the these bindings.

  My question is that can we use WCF NetTcpBinding over internet or not ?

actaully i am working on an application where i need to publish my webservice (WCF) over internet is it possible by using WCF NetTcpBinding  binding. 
 

 and can anyone tell me what is the benefit of WCF  NetTcpBinding over  other bindings.
  

 please suggest me .

推荐答案



NetTcpBinding使用二进制编码通过TCP传输.使用二进制编码可提高性能并减小消息大小,因为它比文本编码更有效.它的缺点是您不能在IIS6中托管它(您需要自定义主机或IIS7中的WAS),您将需要使用WCF客户端,并且某些防火墙可能会阻止未知端口上的TCP连接.
这里有一些性能统计信息:
http ://msdn.microsoft.com/zh-cn/netframework/bb499684.chart(zh-CN,MSDN.10).jpg

NetTcpBinding可以在Internet上使用,但可能不是最好的选择.

致谢,

Alan

Hi,

The NetTcpBinding uses binary encoding over the TCP transport. Using binary encoding improves performance and reduces the message size as it is more efficient than text encoding. It has the dissadvantages that you can't host it in IIS6, (you need a custom host, or WAS in IIS7), you will need to use a WCF client, and some firewalls may block TCP connections on unknown ports.

There's some perfornamce stats here:
http://msdn.microsoft.com/en-us/netframework/bb499684.chart(en-us,MSDN.10).jpg

NetTcpBinding can be used over the internet, but it may not be the best choice.

Regards,

Alan


这篇关于通过互联网进行NetTcp绑定???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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