【问题标题】:Can not add web service reference to my project using port number无法使用端口号向我的项目添加 Web 服务引用
【发布时间】:2013-09-19 07:17:51
【问题描述】:

我可以从 Web 浏览器访问 serverIP:7075//webservice,但无法将其添加到 Visual Studio。它会引发异常。

【问题讨论】:

  • 它应该可以工作。它是一种什么样的网络服务?

标签: c# web-services port-number


【解决方案1】:

在 Visual Studio 2012 中:

Add Service Reference...,输入或粘贴Address,点击Go,选中并点击OK

【讨论】:

    【解决方案2】:

    在 Visual Studio 中添加引用时,尝试在 URL 末尾附加 ?wsdl

    例如:

    serverIP:7075/webservice?wsdl
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-02
      • 2011-01-23
      • 1970-01-01
      • 1970-01-01
      • 2010-11-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多