c# - ReportingServices 2008 web service LoadReport returns error stating that "report" parameter is missing -


the code calls proxy calling web services is:

reportexecutionservice rs = new reportexecutionservice(); rs.timeout = system.threading.timeout.infinite; rs.credentials = system.net.credentialcache.defaultcredentials;

string execurl=configurationsettings.appsettings["reportsbasepath"] + @"/reportexecution2005.asmx"; rs.url=execurl;

executioninfo execinfo = rs.loadreport("/reports/rptsharedrepresentativereport",null);

please note first parameter of loadreport function is: report

errors:

the value parameter 'report' not specified. either missing function call, or set null @ microsoft.reportingservices.webserver.reportexecution2005impl.loadreport(string report, string historyid, executioninfo2& executioninfo) @ microsoft.reportingservices.webserver.reportexecutionservice.loadreport(string report, string historyid, executioninfo& executioninfo)

at system.web.services.protocols.soaphttpclientprotocol.readresponse(soapclientmessage message, webresponse response, stream responsestream, boolean asynccall) @ system.web.services.protocols.soaphttpclientprotocol.invoke(string methodname, object[] parameters) @ reportexecutionservice.loadreport(string report, string historyid) @ stockamp.portal.rsdata.sareportserveraccess.getreportstream(string reportpath, arraylist parametervalues, string format)

did try allowing null values?

if doesn't work, check xml. i've noticed quite when change items in layout (like multi-value , blank value) think have changed code, doesn't change.

no matter report parameters say, xml matters.

on report, click view -> code layout or data tab. once see xml definition report, search name of multi-value parameter. believe should enclosed in tag. check make sure parameter has following:

<nullable>true</nullable>  <allowblank>true</allowblank> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -