Add Web Reference is a wrapper over
wsdl.exe and can be used to create proxies for .NET 1.1 or 2.0 clients. Of course this means when you are pointing to a WCF service you have to be pointing to an endpoint that uses basicHttpBinding (as I was).
Add Service Reference is a wrapper over svcutil.exe and also creates clients proxies (and additionally web.config entries). These proxies, however, can only be consumed by .NET 3.0+ clients.
It seems to me that a better approach would have been to have a single menu option that allowed you to select the proposed target framework.
理解.NET服务调用与代理选择:AddWebReference与AddServiceReference
本文深入探讨了.NET中用于创建客户端代理的两个关键函数:AddWebReference和AddServiceReference的区别及使用场景。重点阐述了它们如何与基本HTTP绑定的WCF服务交互,并指出在不同目标框架下选择代理的优化策略。
1674

被折叠的 条评论
为什么被折叠?



