Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 WCF 4 Web 服务来检查肥皂标题。这适用于 WCF 客户端,但我有一个客户需要使用他们应用程序中的旧 Web 引用。您如何使用“添加 Web 引用”和在客户端中添加 SOAP 标头来使用 WCF 服务?让我们保持简单,假设我想在标题中传递一个国家,所以标题名称将是国家。
谢谢,保罗
您需要通过 basicHttpBinding 公开您的端点,以便与 .net 3.0 之前的客户端进行互操作。
更新
这有帮助吗?http://msmvps.com/blogs/paulomorgado/archive/2007/04/27/wcf-building-an-http-user-agent-message-inspector.aspx