【发布时间】:2011-06-14 08:35:32
【问题描述】:
我正在使用 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"/>
【问题讨论】:
标签: wcf json maxreceivedmessagesize