如何从SSRS访问Web服务?

时间:2013-10-15 19:33:14

标签: web-services ssrs-2008

我使用的是SSRS 2008 R2,对Web服务来说还是一个新手。我想使用网站:

https://geoservices.tamu.edu/Services/Geocode/WebService/GeocoderService_V04_01.asmx

以便将地址转换为地理数据类型。我怎样才能做到这一点?如果可能的话,我想自动化这个过程。我发现许多网站允许我手动输入他们网站上的地址,但我希望能够在我的本地桌面上执行此操作。但是,上面的网站据说可以让我将网络服务连接到我的本地机器,以便进行此翻译。

为了添加此网络参考,我需要采取哪些步骤?我试过关注这个网站,但我还没有完成它的工作:

http://technet.microsoft.com/en-us/library/aa964129.aspx#repservxmlds_topic4

所以我创建了一个XML数据源: enter image description here

然后我使用此数据源创建了一个新数据集:

<Query>
   <Method Name="GeocodeAddressParsed" 
Namespace="https://geoservices.tamu.edu">
   <Parameters>
       <Parameter Name="City">       
       </Parameter>
   </Parameters>
   </Method>
   <ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>

但是当我在BIDS中运行此查询时,我收到以下错误:

The remote server returned an error: (500) Internal Server Error.
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---&gt; Unexpected or unimplemented census year: Unknown</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
----------------------------
Failed to execute web request for the specified URL.
Soap Fault:
Server was unable to process request. ---&gt; Unexpected or unimplemented census year: Unknown

所以我尝试添加censusYear参数,但我继续得到同样的错误。我也试过联系ATM,但他们离线了。但是,我认为我不需要联系他们,因为服务描述和方法详细信息在线列出。

我在同一个项目中创建了所有这些,并在RDL中创建了我的报告。我也尝试将其创建为C#Console应用程序。但是如果可能的话,我更喜欢从同一个RDL文件中运行它。

我不知道为什么这不起作用。我试图通过仅指定一个参数来尽可能地简化它。

0 个答案:

没有答案
相关问题