Re: Web service - Large dataset problem
- From: "Jim Rand" <jimrand@xxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 10:56:52 -0400
Rather than passing a dataset, pass the string which results from
1) Writing the dataset to xml
2) Compressing the xml string
3) Base64Encodeing the compressed result.
You will discover that the amount of data passed over the wire is reduced by
86% which means, in your case, it is equivalent to sending just .14 * 300000
rows or just 42,000 rows.
Jim
<kasi.uh@xxxxxxxxx> wrote in message
news:1185223073.142593.138860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a web service that is up and running. I query a central
database on the client side and pass the DataSet to the webservice. It
works fine for small datasets. When I try to call a webmethod on that
webservice for a large dataset (A table with 300,000 rows), I get the
following error message:
The underlying connection was closed: An unexpected error occurred on
a receive.
at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
I have tried all those options in the KB page, none seem to work.
http://support.microsoft.com/kb/915599#top
Btw, am running VS2005 and IIS 6.0 on Win XP Pro. Thanks in advance!
.
- References:
- Web service - Large dataset problem
- From: kasi . uh
- Web service - Large dataset problem
- Prev by Date: Re: Regex help
- Next by Date: AJAX Calendar Extender
- Previous by thread: Re: Web service - Large dataset problem
- Next by thread: Setting Folder Inheritance
- Index(es):
Relevant Pages
|