问题描述
嗨
我有一个Axis2 Web服务和WCF客户端,当我尝试访问返回巨大对象的服务方法时,出现以下错误
I have an Axis2 webservice and WCF client , when i try to acess the service method which return huge object, I get following error
System.ServiceModel.CommunicationException:已超出传入消息的最大消息大小配额(65536).要增加配额,请在适当的绑定元素上使用MaxReceivedMessageSize属性. ---> System.ServiceModel.QuotaExceededException: 已超过传入消息的最大消息大小配额(65536).要增加配额,请在适当的绑定元素上使用MaxReceivedMessageSize属性.
System.ServiceModel.CommunicationException: 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. ---> System.ServiceModel.QuotaExceededException: 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.
我尝试增加m axBufferSize = " 2147483647 &; maxBufferPoolSize = "" 2147483647 &; maxReceivedMessageSize = "" 2147483647 " 在app.config中.但是没用..
I tryed increasing the value of maxBufferSize="2147483647"maxBufferPoolSize="2147483647"maxReceivedMessageSize="2147483647" in app.config. But no use..
我是否需要更改Axis2 Web服务设置中的任何内容?
Chetana
推荐答案
http://stackoverflow.com/questions/8225736/transfer -wcf-service中的大量数据
这篇关于System.ServiceModel.CommunicationException:超出了传入消息的最大消息大小配额(65536).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!