问题描述
|
我正在使用ASIFormDataRequest将基于JSON格式的图像发布到基于“ WCF REST服务模板40(CS)\”的WCF REST服务。对于小于WCF服务的默认消息大小@ 65536字节的图像,它工作正常,但是我想增加该值。
我见过的所有示例都添加了一个具有更高maxReceivedMessageSize等的webHttpBinding,以及一个使用该bindingConfiguration的服务端点。但是,使用此模板,端点标记中没有指向的.svc或接口。
编辑:对不起,我能够使用standardEndpoint标记对其进行修复:
<standardEndpoint name=\"\" helpEnabled=\"true\" maxBufferPoolSize=\"1500000\" maxReceivedMessageSize=\"1500000\" transferMode=\"Streamed\" automaticFormatSelectionEnabled=\"true\"/>
解决方法
我遇到了同样的问题。我已经竭尽所能找到每个邮件大小设置,但仍然遇到相同的问题。我怀疑我的服务出于某种原因甚至没有使用这些设置。当然可以使用一些帮助。谢谢!这是我的“ standardEndpoint”:
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name=\"WebHTTP\" maxBufferSize=\"2147483647\" maxReceivedMessageSize=\"2147483647\" maxBufferPoolSize=\"0\" helpEnabled=\"true\" automaticFormatSelectionEnabled=\"true\" faultExceptionEnabled=\"true\">
<readerQuotas maxBytesPerRead=\"2147483647\" maxNameTableCharCount=\"2147483647\" maxStringContentLength=\"2147483647\" maxArrayLength=\"2147483647\" maxDepth =\"2147483647\" />
</standardEndpoint>
</webHttpEndpoint>
</standardEndpoints>