Alan Newton - 410 - Sep 4, 2014

I have a SS web service here offering file uploads via base64 string encoding (limitation of the client applications rather than a design decision!). One client in particular is stuck with SOAP11, but limited to a string of about 1MB; anything larger and an exception regarding MaxCharactersInDocument is thrown. Is there an XReader in ServiceStack.Text somewhere with this being set? Any override available? Thanks in advance.

Alan Newton:

Never mind - all sorted. For posterity:

XmlSerializer.Instance = new XmlSerializer(omitXmlDeclaration: false, maxCharsInDocument: 0);