Groups > Asp .Net > ASP.NET XML Web Services > Re: WCF Web Service - maxReceivedMessageSize




WCF Web Service - maxReceivedMessageSize

WCF Web Service - maxReceivedMessageSize
Mon, 31 Mar 2008 21:22:33 +000
Using Visual Studio.Net 2008, I am building a WcfService deployed as a Web
Service. I am calling a WebMethod called getVendors(). This returns an arrays of
Vendor objects. There are 12000 objects in the array. I increased the
maxReceivedMessageSize from the default 65536 to the max 2147483647. This
increase is still not enough to handle the size of the 12000 objects in the
array.

In a Service Oriented Architecture how would I handle data returned with that
size. My guess is that I would need to call the web method multiple times and
then combine the data. Are there C# examples or a white paper explaining this?
Post Reply
Re: WCF Web Service - maxReceivedMessageSize
Tue, 1 Apr 2008 17:19:02 +0000
NickKA:

Using Visual Studio.Net 2008, I am building a WcfService deployed as a Web
Service. I am calling a WebMethod called getVendors(). This returns an arrays of
Vendor objects. There are 12000 objects in the array. I increased the
maxReceivedMessageSize from the default 65536 to the max 2147483647. This
increase is still not enough to handle the size of the 12000 objects in the
array.In a Service Oriented Architecture how would I handle data returned with
that size. My guess is that I would need to call the web method multiple times
and then combine the data. Are there C# examples or a white paper explaining
this?



 

12000 of the same type of object as in person?
Post Reply
Re: WCF Web Service - maxReceivedMessageSize
Tue, 1 Apr 2008 18:15:29 +0000
I have a C# class called Vendor. I use this class in a way called
"Generics", List<Vendor>. Using a Web Service the call to
getVendors() returns an array of Vendor[] objects.

It appears I have to use Streaming to handle what I am trying to do.
Post Reply
Re: WCF Web Service - maxReceivedMessageSize
Wed, 2 Apr 2008 01:18:37 +0000
Would paging be a better option? Create a cursor and pass the pointer to your
DAL to retrieve the next set instead of trying to load all of them at the same
time.
Post Reply
Re: WCF Web Service - maxReceivedMessageSize
Mon, 14 Jul 2008 02:26:23 +000
Having designed many WCF services, I would have to question why you are
returning such a large amount of data.  If you designed your structure with a
hierarchal data structure that includes something such as categories,
sub-category and products, you may want to separate the return.  Also, if you
are creating classes that match your data table then you may want to consider
creating a more streamlined version of the data contract that only contains the
values you need.Hope this helps.
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact