I found an error querying LeadChanges from a .Net application related to XML deserialization... The error says
"The maximum string content length quota (8192) has been exceeded while reading XML data", pointing to the
maxStringContentLength property.
We have been able to track at least that this error pops after trying to retrieve a specific record (works for most of the records, but there is one that causes this)
This is the app.config file in our solution
<?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MktowsApiSoapBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport"> <transport clientCredentialType="None" proxyCredentialType="None"
realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> <binding name="MktowsApiSoapBinding1" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None"
realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="https://na-sj04.marketo.com/soap/mktows/2_0"
binding="basicHttpBinding" bindingConfiguration="MktowsApiSoapBinding"
contract="MarketoWebService.MktowsPort" name="MktowsApiSoapPort" /> </client> </system.serviceModel></configuration>
I tried changing the value 8192 in that property, but I still get the same error. I am wondering if this is an API limitation that can not be overriden, or if there is a way to solve it..
Any hints?
Thanks