VS2008 中缺少添加 Web 参考选项

发布于 2024-07-08 10:04:01 字数 79 浏览 5 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

白云悠悠 2024-07-15 10:04:01

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.

深巷少女 2024-07-15 10:04:01
  1. 右键单击“引用”,然后单击“添加服务引用”
  2. 在“添加服务引用”对话框中单击“高级”
  3. 在“高级”对话框中单击“添加 Web 引用”
  4. 继续,就像通常处理 asmx Web 服务一样。
  1. Right click References and click 'Add Service Reference'
  2. In the Add Service Reference dialog click Advanced
  3. In the Advanced Dialog click 'Add Web Reference'
  4. Continue as you normally would for an asmx web service.
心不设防 2024-07-15 10:04:01

服务引用与 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.

喜爱纠缠 2024-07-15 10:04:01

我认为你需要将 url 传递给 asmx,而不是 wsdl

I think you need to pass the url to the asmx, not the wsdl

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文