SAX XML Parser Error during SOAP request serialization (ERROR #6301: SAX XML Parser Error: <MAXSTRING>xeWrite+7)
Hi everyone,
This one had me breaking a sweat 😅
When a SOAP request has a %Stream.GlobalBinary property, it fails to serialize to base64 when stream is larger than ~43MB with
ERROR #6301: SAX XML Parser Error: <MAXSTRING>xeWrite+7^%occXMLInternal
Unless you enable the following parameters :
Parameter BASE64LINEBREAKS = 1;
Parameter USEPPGHANDLER = 1;
ObjectScriptObjectScript
The first one instructs %SOAP.WebBase to insert line breaks in the XML text, and the second one to use globals rather than local array memory during serialization (to avoid <STORE> error, depending on your available $zstorage)
Enabling both in my SOAP client (created by the SOAP Wizard), solved my problem : the IRIS business operation using the client can now process requests holding very large streams (in my particular case, a whopping 221MB !)