【问题标题】:SQL reporting services referenceSQL 报告服务参考
【发布时间】:2010-05-08 13:08:51
【问题描述】:

我想在本地机器上添加对 SQL 报告服务的服务引用。在 Web 服务 URL 选项卡下的报告服务配置管理器中,我暴露了报告服务 URL,我尝试使用该 Web 引用 URL 将 Web 引用添加到项目中,但找不到它。

请告诉我我是否遗漏了什么或者这是正确的方法?

非常感谢。

【问题讨论】:

  • 您添加了对localhost/ReportServer/ReportService.asmx 的引用但它不起作用?您可以在浏览器中访问该地址吗?
  • 是的,我正在添加该引用,当我尝试将 id 添加为 Web 引用时它找不到服务。当我在浏览器中打开它时,它看起来像这样:localhost/ReportServer - / ________________________________________________ ________________________________________________ Microsoft SQL Server Reporting Services 版本 10.50.1600.1

标签: sql-server reporting-services web-reference


【解决方案1】:

【讨论】:

  • ReportService2010 端点(Sql 2008 R2)应该是什么?是http://server/reportserver/ReportService2010.asmx?wsdl 吗?
【解决方案2】:

SSRS中有两种地址,(可以在SSRS配置工具中找到)

 //localhost:xxxx/Reports

 //localhost:xxxx/ReportServer

你必须使用ReportServer

【讨论】:

  • 我确实使用报表服务器并将 ReportService.asmx 添加到 URL,所以它看起来像这样 localhost/ReportServer/ReportService.asmx 是因为您指定为 xxxx 的端口吗??
  • @SonOfOmer - 我的意思是你必须在//localhost:xxxx/ReportServerxxxx 之后使用 ReportService.asmx 表示端口号。所以你错过了端口号,这就是为什么你无法连接到网络服务
  • 在报告服务配置管理器中 TCP 端口为 80,我尝试访问 localhost:80/ReportServer/ReportService.asmx 并找不到页面。
  • 你能打开这个网址//localhost:80/ReportServer/吗?
  • 是并且打开的页面包含“localhost/ReportServer Microsoft SQL Server Reporting Services 版本 10.50.1600.1”文本
【解决方案3】:

首先,你应该试试这个网址: http://localhost/ReportServer/ReportService.asmx?WSDL

url 末尾的 WSDL 非常重要,因为只有通过这个查询字符串 web-service 才会返回 Web-Service 定义以供报告服务参考。

另外,在“添加网络引用”对话框中,您可以选择“本地计算机上的网络服务”(见图),然后在那里选择您的服务。

alt text http://img706.imageshack.us/img706/2387/solution.png

有关所需权限的其他信息在这里: http://msdn.microsoft.com/en-us/library/ms169816.aspx

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多