简体   繁体   English

从SSRS报告中查询WCF Web服务

[英]Query WCF Web Service from SSRS report

I have simple wcf web service that returns xml when called. 我有简单的wcf Web服务,该服务在调用时返回xml。 It returns something like: 它返回类似:

<PCR>
<title>Project Control Report</title>
<pages>290</pages>
</PCR> 

The web service is currently deployed on my test machine and can be invoked through browser with : 该Web服务当前已部署在我的测试计算机上,并且可以使用以下命令通过浏览器调用:

http://localhost:62722/PCRWebService.svc/getReportData HTTP://本地主机:62722 / PCRWebService.svc / getReportData

In SSRS, for Data Source type I picked XML and I am now trying to specify Query in Data Set properties to call my web service. 在SSRS中,对于数据源类型,我选择了XML,现在尝试在“数据集”属性中指定“查询”以调用我的Web服务。 So far, after trying at least 20 examples I could find online, I couldn't make it work. 到目前为止,在尝试了至少20个可以在网上找到的示例之后,我无法使其正常运行。 Error is always the same: Invalid URI: URI is empty. 错误始终相同: 无效的URI:URI为空。

Here is one of my tries: 这是我的尝试之一:

<Query>
<Method Namespace="http://localhost:62722/PCRWebService.svc/getListPlayers" Name="getListPlayers"></Method>
<ElementPath IgnoreNamespaces="True">
</ElementPath>
</Query>

Here is one of the examples I tried: http://bhushan.extreme-advice.com/webservice-as-datasource-in-ssrs/ 这是我尝试的示例之一: http : //bhushan.extreme-advice.com/webservice-as-datasource-in-ssrs/

Thanks 谢谢

Try this post from the same blog. 从同一个博客尝试这篇文章。 I have followed every step and my report displays the items correctly. 我已经遵循了每个步骤,并且我的报告正确显示了项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM