When serializing the large ResultDetailXML response, set the maximum size of the TextMessageEncodingBindingElement to 2147483647.
<!-- Moved Gist inline (mc-doc/8ff9db5452b8bda6c19bc8e3e91cd5c0) -->TextMessageEncodingBindingElement txelement = new TextMessageEncodingBindingElement(MessageVersion.Soap11WSAddressingAugust2004, Encoding.UTF8);
txelement.ReaderQuotas.MaxDepth = 2147483647;
txelement.ReaderQuotas.MaxStringContentLength = 2147483647;
txelement.ReaderQuotas.MaxArrayLength = 2147483647;
txelement.ReaderQuotas.MaxBytesPerRead = 2147483647;
txelement.ReaderQuotas.MaxNameTableCharCount = 2147483647;