Git Product home page Git Product logo

Comments (6)

hnrkndrssn avatar hnrkndrssn commented on June 20, 2024

@twerthi is this something you know how to solve quickly?

If not, I'll get an environment setup and figure out what's happening here.

from library.

twerthi avatar twerthi commented on June 20, 2024

What version of PowerShell are they using? What version of SQL Server Reporting Services?

Does the $ReportExecutionProxy have a value? What does $ReportExecutionProxy.GetType() return?

from library.

jeremyhoughton avatar jeremyhoughton commented on June 20, 2024

@twerthi please see the answers to your questions below. Please let me know if you need anymore information?

Powershell Version:
PSVersion 3.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.18449
BuildVersion 6.2.9200.16628
PSCompatibleVersions {1.0, 2.0, 3.0}
PSRemotingProtocolVersion 2.2

SQL Server Reporting Services Version:
Microsoft SQL Server Reporting Services Version 11.0.3000.0

$ReportExecutionProxy:
Yes $ReportExecutionProxy has a value. In the template it is initiated like so:
$ReportExecutionProxy = New-WebServiceProxy -Uri $ReportExecutionUrl -UseDefaultCredential

Where $ReportExecutionUrl = "http://xxxxx/ReportServer/ReportService2005.asmx?wsdl" via the template parameter

We actually get autocomplete on $ReportExecutionProxy through the Powershell ISE, however the method LoadReportDefinition does not seem to be there?

$ReportExecutionProxy.GetType() returns Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1er_ReportService2005_asmx_wsdl.ReportingService2005

from library.

twerthi avatar twerthi commented on June 20, 2024

@jeremyhoughton

The value for $ReportExecutionUrl should look like this:

http://xxxxx/reportserver/ReportExecution2005.asmx?wsdl

The value you've supplied here is what would be for the $ReportServiceUrl, which I would recommend changing to http://xxxxx/ReportServer/ReportService2010.asmx?wsdl

from library.

jeremyhoughton avatar jeremyhoughton commented on June 20, 2024

Thanks @twerthi. It works fine now! Maybe it might be worth while putting some error checking in the code to either check for the text "ReportExecution" in the input execution report url or to check whether that url has access to the LoadReportDefinition method? If there is an error raise an exception early suggesting that the input url is invalid?

from library.

twerthi avatar twerthi commented on June 20, 2024

Not a bad idea, I'll look into that.

from library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.