2010-05-08 197 views
1

我想在本地计算机上添加对SQL报告服务的服务引用。在Web服务URL选项卡下的报告服务配置管理器中我公开报告服务URL,我尝试使用该Web引用URL添加对项目的Web引用,但无法找到它。SQL报告服务参考

请告诉我我错过了什么,或者这是正确的方式?

非常感谢。

+0

您要添加什么参考HTTP://禄alhost/ReportServer/ReportService.asmx,它不工作?你可以在浏览器中访问该地址吗? – 2010-05-08 17:42:47

+0

是的,我添加该引用,当我尝试将id添加为Web引用时,它找不到服务。 当我在浏览器中打开它,它看起来是这样的: 本地主机/的ReportServer -/ ________________________________________________ ________________________________________________ 的Microsoft SQL Server Reporting Services的版本10.50.1600.1 – eomeroff 2010-05-09 11:25:10

回答

1

主要存在两种在SSRS,地址(遵守前面找到他们的SSRS配置工具)

//localhost:xxxx/Reports 

//localhost:xxxx/ReportServer 

,你必须使用ReportServer

+0

我使用报表服务器和我添加ReportService.asmx到URL,所以它看起来像https://localhost/ReportServer/ReportService.asmx是因为您指定为xxxx的端口? – eomeroff 2010-05-09 11:27:27

+0

@SonOfOmer - 我的意思是你在'// localhost:xxxx/ReportServer'后面有ReportService.asmx,'xxxx'表示端口号。所以你错过了端口号,这就是为什么你不能连接到Web服务 – 2010-05-09 13:03:13

+0

在报告服务配置管理器TCP端口是80,我试图访问https:// localhost:80/ReportServer/ReportService.asmx和页面未找到。 – eomeroff 2010-05-09 13:38:09

0

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

URL末尾的WSDL非常重要,因为只有通过此查询字符串Web服务才会返回报告服务引用的Web服务定义。

其他方式,在“添加网页引用”对话框中,您可以选择“本地计算机上的Web服务”(请参见图片),然后选择您的服务。

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

大约需要权限的其他信息是在这里: http://msdn.microsoft.com/en-us/library/ms169816.aspx