VS2008 中缺少添加 Web 参考选项
我正在尝试将 Web 引用添加到 VS2008 .Net 3.5 控制台应用程序,但该选项不存在。 那里有“添加引用”和“添加服务引用”选项。
I'm trying to add a Web Reference to a VS2008 .Net 3.5 Console Application but the option's not there. The options to "Add Reference" and "Add Service Reference" are there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Kirk Evans 在博客中讨论了这个问题 此处
基本上,您只需添加服务引用即可。 Web 参考只是您可以添加的一种服务类型。
Kirk Evans blogged about that very issue Here
Basically, you just add a service reference. A web reference is just one type of service you can add.
服务引用与 Web 引用相同——也就是说,您可以添加 ASMX Web 服务作为引用,它将生成您的代理/等。 就像添加 Web 引用一样。
更改是为了支持 WCF 并使所有远程(“服务”)引用在 VS 中的外观和行为相同。
A Service Reference is the same as a Web Reference -- that is, you can add an ASMX web service as a reference and it will generate your proxies/etc. just like Add Web Reference did.
The change is to support WCF and have all remote ("service") references look and act the same in VS.
我认为你需要将 url 传递给 asmx,而不是 wsdl
I think you need to pass the url to the asmx, not the wsdl