当数组很大时,Web服务不返回数组的成员 [英] Web service not returning members of an array when array is large

查看:73
本文介绍了当数组很大时,Web服务不返回数组的成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个返回大量数据的Web服务。  当数组大小约为4,000时,Web服务返回数据就好了。  最多可以超过7,000,而Web服务只返回一个空数组。  关于我能为
改变什么以使其返回所有对象的任何想法?

I have a web service that returns a large amount of data.  When the array size is about 4,000 the web service returns the data just fine.  Bump that up to over 7,000 and the web service just returns an empty array.  Any ideas on what I can change to get it to return all objects?

推荐答案

ASMX Web服务可能难以转移大量金额数据的。其中一个原因是在服务执行过程中会多次复制数据。

ASMX web services can have difficulty transferring large amounts of data. One reason for this is that the data are copied several times during the course of the service execution.

如果您可以选择转移到WCF,那么这是一个很好的理由。它。除此之外,WCF不会缓冲如此多的数据,也有流模式。

If moving to WCF is an option for you, then this would be a good reason to do it. Among other things, WCF doesn't buffer so much data, and also it has a streaming mode.


这篇关于当数组很大时,Web服务不返回数组的成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆