【发布时间】:2009-09-01 09:16:57
【问题描述】:
我正在尝试使用提供的 Web 服务从基本的 asp.net 网站访问报告服务网站。
我已在报告服务器上添加了对 reportservice2005.asmx 的引用,但我在使智能感知正常工作以及运行/编译任何内容时遇到问题。
从示例中,我看到人们使用以下内容创建服务实例:“ReportingService rService = new ReportingService();” - 其中 ReportingService 是在 Visual Studio 中创建的 Web 引用的名称。我已将此修改为 vb.net 代码,但出现错误。好像 ReportingService 是命名空间,我需要选择其中的一个类。
所以我尝试了“dim rService as ReportingService.ReportingService2005”
这是正确的吗?它似乎适用于智能感知,但是当我尝试运行代码时,我收到编译错误:“未定义类型'ReportingService.ReportingService2005'。”
有什么想法吗? 干杯! :D
【问题讨论】:
标签: asp.net web-services reporting-services