I have a web service that is used by third parties to access various bits of functionality for the company I work for. This web service is using another web service within the company to send email, and this is the error we're receiving on particularly long emails - "The maximum string content length quota (8192) has been exceeded while reading XML data."
I've already read through the question and answers here, but with no luck. I've modified the readerQuotas on the basicHttpBinding element of my web.config file, and I'm still receiving this error. Modifying the server's (where the web service I'm calling resides) is a no-go, since this issue isn't happening with any other clients using the service, and this is in an enterprise environment. I'm able to call this service outside of my own service, using the exact same content, with success. It's just when I'm calling my service which calls the email service that the error appears.
Does anyone have any suggestions at all? I'm at a standstill, and am tired of bashing my head against this. My only thought right now is to modify the config file for the email service, but there's only one within the company and it's a production service, so that's nigh impossible just to test and see if this resolves my issue.
Thanks,
T.J.
Edit: Relevant config sections
Client
<endpoint address="https://foo.domain/MailService.asmx"
binding="basicHttpBinding" bindingConfiguration="MailServiceSoap"
contract="MailService.MailServiceSoap" name="MailServiceSoap" />
<basicHttpBinding>
<binding name="MailServiceSoap" maxReceivedMessageSize="2147483647"
maxBufferSize="2147483647" openTimeout="00:10:00" receiveTimeout="00:10:00"
sendTimeout="00:10:00" closeTimeout="00:10:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
Server
Working on this still. I don't have any access to it.