or
private void RenderReportMethod(RenderBeginEventArgs rbea)<br> { if (rbea != null) { rbea.ParameterValues["Number"] = Invoice.Number;
.....(other parameters)..... } }ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress) { var binding = new BasicHttpBinding() { MaxBufferSize = int.MaxValue, MaxReceivedMessageSize = int.MaxValue, ReceiveTimeout = new TimeSpan(0, 15, 0), SendTimeout = new TimeSpan(0, 15, 0) };
var endpointAddress = new EndpointAddress(remoteAddress);
return new ReportServiceClient(binding, endpointAddress);
}<bindings> <basicHttpBinding> <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxStringContentLength="2147483647"/> </binding> </basicHttpBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior"> <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService"/> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services>HTTP/1.1 200 OKServer: Microsoft-IIS/5.1Date: Fri, 08 Jul 2011 12:07:42 GMTX-Powered-By: ASP.NETX-AspNet-Version: 4.0.30319Content-Length: 812Set-Cookie: ASP.NET_SessionId=faopnca1hygazmjbd2yx4x5d; path=/; HttpOnlyCache-Control: privateContent-Type: text/xml; charset=utf-8<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<RenderAndCacheResponse xmlns="Telerik.ReportService"> <RenderAndCacheResult xmlns:a="http://schemas.datacontract.org/2004/07/Telerik.Reporting.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:Error i:nil="true"/> <a:Actions/> <a:Bookmarks i:nil="true"/> <a:HasDocumentMap>false</a:HasDocumentMap> <a:InstanceID>226a967f-0ce1-4951-99a8-94449583823f</a:InstanceID>
<a:NavigateBackEnabled>false</a:NavigateBackEnabled>
<a:NavigateForwardEnabled>false</a:NavigateForwardEnabled> <a:PageCount>1</a:PageCount> <a:PageNumber>1</a:PageNumber> <a:Parameters/> <a:Report>MJDS.Relatorios.RelatorioTipoPermissao, MJDS.Relatorios, Culture=neutral, PublicKeyToken=null</a:Report> </RenderAndCacheResult> </RenderAndCacheResponse> </s:Body></s:Envelope>HTTP/1.1 200 OKServer: Microsoft-IIS/5.1Date: Fri, 08 Jul 2011 12:07:42 GMTX-Powered-By: ASP.NETX-AspNet-Version: 4.0.30319Content-Length: 436Cache-Control: privateContent-Type: text/xml; charset=utf-8<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <GetPageResponse xmlns="Telerik.ReportService"> <GetPageResult xmlns:a="http://schemas.datacontract.org/2004/07/Telerik.Reporting.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:Error>Report is unavailable or session has expired.</a:Error> <a:Buffer i:nil="true"/> <a:PageNumber>0</a:PageNumber> </GetPageResult> </GetPageResponse> </s:Body></s:Envelope>