By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,898 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,898 IT Pros & Developers. It's quick & easy.

Soap12 System.ServiceModel.QuotaExceeded Exception

P: 1
Hi There,
I have a windows forms application, talking to a MySQL hosted database via Mono Webservices, using SOAP1.2.

The program can use several endpoints, the normal soap ones talk to MS SQL, but I need to get the MySQL SOAP12 working.

I am getting Maximum message size quota for incoming messages (65536) has been exceeded.

I have seen lots of advice on the web about setting the MaxRecievedMessageSize property in the config file,

But I have tried and failed to place the config info correctly to get the parameter to work. ( MaxRecievedMessageSize = "131072" ), I get the message "MaxRecievedMessageSize Attribute not allowed when trying to place in SOAP Binding config.

Section my of app.config below:

Expand|Select|Wrap|Line Numbers
  1.  <system.serviceModel>
  2.     <bindings>
  3.       <basicHttpBinding>
  4.         <binding name="ServiceSoap" />
  5.         <binding name="Service2Soap" />
  6.       </basicHttpBinding>
  7.       <customBinding>
  8.         <binding name="Service2Soap12">
  9.           <textMessageEncoding messageVersion="Soap12" />
  10.           <httpTransport />
  11.         </binding>
  12.       </customBinding>
  13.     </bindings>
  14.     <client>
  15.       <endpoint address="http://localhost/JS/Service.asmx" binding="basicHttpBinding"
  16.         bindingConfiguration="ServiceSoap" contract="ConvertSvc.ServiceSoap"
  17.         name="ServiceSoap" />
  18.       <endpoint address="http://127.0.0.1:8080/MonoService.asmx" binding="basicHttpBinding"
  19.         bindingConfiguration="Service2Soap" contract="MonoService.Service2Soap"
  20.         name="Service2Soap" />
  21.       <endpoint address="http://127.0.0.1:8080/MonoService.asmx" binding="customBinding"
  22.         bindingConfiguration="Service2Soap12" contract="MonoService.Service2Soap12"
  23.         name="Service2Soap12" />
  24.     </client>
  25.   </system.serviceModel>

Ant Help would be greatly appreciated
Apr 13 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.