WCF请求/响应封装尺寸 [英] WCF request/response package size
问题描述
我想知道是否有对最大请求/ 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屋!