当调用web service出现错误Server Error in '/' Application.
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
解决方案:修改配置文件内容如下,
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true"> maxBytesPerRead="4096" maxNameTableCharCount="16384" /> realm="" /> binding="basicHttpBinding" bindingConfiguration="WebServiceSoap"
contract="WebServiceReference.WebServiceSoap"
name="WebServiceSoap" /> 注:部分内容请根据自己所建的服务内容修改!
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
解决方案:修改配置文件内容如下,
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
contract="WebServiceReference.WebServiceSoap"
name="WebServiceSoap" />
0人赞
分享
二维码
赏一个