all groups > sql server reporting services > december 2005 >
You're in the

sql server reporting services

group:

RS Web Service Reference File


RS Web Service Reference File Terry
12/27/2005 4:40:04 AM
sql server reporting services: Where do I go to add a constractor of "this.Timeout=..." to a the Web Service
reference file?

Challenge: Long running reports are timing out

Thank you for your assistance.


Re: RS Web Service Reference File Oleg Yevteyev
12/27/2005 9:43:08 AM
Find ReportingService() class in a reference file.
it looks like :
public class ReportingService :
System.Web.Services.Protocols.SoapHttpClientProtocol
{
.......

}

replace "public ReportingService() {...}" with

public ReportingService()
{
this.Timeout=1200000;
}
or you can even overload that constructor by adding the following

public ReportingService(string url)
{
this.Url = url;
this.Timeout=1200000;
}
do not regenerate it, otherwise you'll loose your changes.

another way is to extend ReportingService class.



[quoted text, click to view]

Re: RS Web Service Reference File Terry
12/27/2005 11:49:50 AM
Thank you very much!

[quoted text, click to view]
AddThis Social Bookmark Button