使用 net.tcp 绑定在 IIS 7 中托管 WCF
我通过 net.tcp 绑定在 IIS 7 中托管 WCF 服务。我有两个关于 IIS 配置的问题。
- 我可以只在包含我的服务代码的网站中配置net.tcp协议吗?到目前为止我发现的所有示例总是在 http 协议之后附加 net.tcp 协议。
- 我们可以打开两个功能:Windows Communication Foundation Http 激活和 Windows Communication Foundation Non-Http 激活。一些示例表明我们需要打开非 Http 激活,而其他示例则表明两者都需要打开。我的测试表明两者都是必需的。但是,我不明白两者之间的区别。如果我的服务和客户端仅使用 net.tcp 协议,为什么需要 Http 激活?
I am hosting a WCF service in IIS 7 through net.tcp binding. I have two questions about IIS configuration.
- Can I only configure net.tcp protocol in the the web site containing my service code? All the samples I found so far always append the net.tcp protocol after http protocol.
- There are two features we can turn on: Windows Communication Foundation Http Activation and Windows Communication Foundation Non-Http Activation. Some sample state that we need to turn on Non-Http activation and others state that both are required to turn on. My test shows that both are required. However, I do not understand the difference between the two. If only net.tcp protocol is used by my service and client, why should Http Activation be required?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使您的服务是 net.tcp,添加服务引用时使用的元数据交换也可能是 http。
你做了哪些测试?如果您需要更多帮助,请发布您的配置文件。
Even if your service is net.tcp the meta data exchange that is used when you add a service reference may be http.
Which tests did you do? If you need more help post your config file.