WCF请求/响应封装尺寸 [英] WCF request/response package size

查看:263
本文介绍了WCF请求/响应封装尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有对最大请求/ respose数据包大小WCF限制配置设置?我使用VSTS 2008 + WCF 3.5。我自托管WCF服务作为Windows服务。

I am wondering if there are configurable settings for restriction of the maximum request/respose data package size for WCF? I am using VSTS 2008 + WCF 3.5. I am self-host WCF service as a Windows Service.

在此先感谢,
乔治

thanks in advance, George

推荐答案

是,在结合有获取/设置Max属性接收数据字节:勾选maxReceivedMessageSize属性(代表字节大小)

Yes, the binding has properties for getting/setting max receive data bytes: check "maxReceivedMessageSize" property (representing the size in bytes).

但是,将其设置为一个很大的值可能不是一个好主意,因为如果错误在运输occures你必须重新发送整个(大的)消息。

However, setting this to a big value could not be a good idea since if an error occures in the transport you have to resend the whole (big) message.

编辑:这里你可以找到所有绑定配置属性的详细信息。

Here you can find details about all binding configuration properties.

这篇关于WCF请求/响应封装尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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