【问题标题】:Consume WCF service with wsHttpBinding using web reference使用 Web 引用通过 wsHttpBinding 使用 WCF 服务
【发布时间】:2018-02-15 16:56:06
【问题描述】:

WCF 服务正在使用wsHttpBinding 运行。是否可以使用 Web 参考而不是服务参考来使用此服务?

提前致谢

【问题讨论】:

  • - “旧”网络参考适用于basicHttpBinding

标签: c# .net wcf wcf-wshttpbinding


【解决方案1】:

web reference 是旧式、已弃用的 ASP.NET Web 服务 (ASMX) 技术(仅使用 XmlSerializer)

您无法使用旧ASMX 的默认配置使用wsHttpBinding 上公开的服务。 wsHttpBinding 的默认配置使用高级安全性,ASMX 不支持它。

您必须add service reference / svcutil 或将您的绑定更改为basicHttpBinding

【讨论】:

  • 感谢您的回复
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-10-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多