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
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="ServiceSoap" />
- <binding name="Service2Soap" />
- </basicHttpBinding>
- <customBinding>
- <binding name="Service2Soap12">
- <textMessageEncoding messageVersion="Soap12" />
- <httpTransport />
- </binding>
- </customBinding>
- </bindings>
- <client>
- <endpoint address="http://localhost/JS/Service.asmx" binding="basicHttpBinding"
- bindingConfiguration="ServiceSoap" contract="ConvertSvc.ServiceSoap"
- name="ServiceSoap" />
- <endpoint address="http://127.0.0.1:8080/MonoService.asmx" binding="basicHttpBinding"
- bindingConfiguration="Service2Soap" contract="MonoService.Service2Soap"
- name="Service2Soap" />
- <endpoint address="http://127.0.0.1:8080/MonoService.asmx" binding="customBinding"
- bindingConfiguration="Service2Soap12" contract="MonoService.Service2Soap12"
- name="Service2Soap12" />
- </client>
- </system.serviceModel>
Ant Help would be greatly appreciated