使用ReportExecutionServiceSoapClient通过SSIS运行SSRS报告

时间:2017-08-07 06:15:41

标签: c# reporting-services ssis

如何在SSIS包中使用VS2015运行SSRS报告。以下答案并不是我所读过的最新的做法。这篇文章是老方法 how to run SSRS reports using SSIS?因为它提到了ReportExecutionService而不是ReportExecutionServiceSoapClient。

当我调用代理时,我还尝试了另一个站点的答案(就像第一行代码失败一样。

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services />
    <bindings>
      <basicHttpBinding>
        <binding name="basicHttpBindingConfig" allowCookies="true" maxReceivedMessageSize="5242880">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Ntlm" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>

    <client>
      <endpoint address="http://<myserver>/reportserver/ReportExecution2005.asmx?WSDL"
        binding="basicHttpBinding" bindingConfiguration="basicHttpBindingConfig"
        contract="ServiceReference1.ReportExecutionServiceSoap" name="ReportExecutionServiceSoap" />
    </client>
  </system.serviceModel>
</configuration>

我得到的错误是: System.ServiceModel.dll中出现“System.InvalidOperationException”类型的异常,但未在用户代码中处理

其他信息:找不到名称为“ReportExecutionServiceSoap”的端点元素,并且在ServiceModel客户端配置部分中找不到“ServiceReference1.ReportExecutionServiceSoap”。这可能是因为没有为您的应用程序找到配置文件,或者因为在客户端元素中找不到与此名称匹配的端点元素。

如果我使用默认配置或下面示例中的配置,或者如果我调用不需要端点的构造函数,那么无关紧要,所以我想要尝试的其他内容。

参考: C# Example in SSIS

的app.config

The 'contract' attribute is invalid - The value 'ServiceReference1.ReportExecutionServiceSoap' is invalid according to its datatype 'clientContractType' - The Enumeration constraint failed.

同样在设计时有警告:

{{1}}

0 个答案:

没有答案
相关问题