English 中文(简体)
接收大物体
原标题:Receive large object with WCF

我曾试图通过XML接收一个大物体。 如果我设定了<条码>,则它就没有工作。

只是在我增加<条码>时,它才会奏效,但是它降低了业绩。

是否可在不增加<条码>的情况下解决这一问题?

问题回答

简短的答复是no(关于缓冲信息)。 如果需要获得大量数据,你需要增加。 你们应当根据你希望获得的数据的最大数量适当确定这些数据。

This is a code smell for most WCF environments. If you are sending a large lump of XML that usually means that you aren t using a DataContract to send objects.

您也指出,你希望利用主流化。 如果是这样的话,那么,读者的配额就开始发挥作用,因为你通过的是一流,将包含你的数据,而根本没有数据合同。

如果你使用缓冲器,那么你可以提高读物的大小,但这会受到记忆的惩罚。 牢记为即将到来的妇联建立这些缓冲点,要求你能够同时处理,以便你陷入困境。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签