Im having an issue with Soap::Lite. My client code is crashing (faulting) when I return a hash containing too much information.

EG I have a function that goes through a directory and does a 'stat' of each file. I put this output into a hash with the filenames as the keys and return the hash. By viewing the 'trace' output from soap I see that the info is being sent over the wire but its incomplete.

If I turn off the fault handler I see this error:
unclosed token at line 1, column 16377, byte 16377 at c:/perl/lib/XML/Parser.pm line 187.

Im guessing that I've over run some buffer so SOAP truncates the return value.

Is there a documented limit to what I can send via Soap in Perl? This value is close enough to 0xFFFF / 4 that it makes me wonder.
Whats the strategy for sending large quantities of information?

In reply to Soap::Lite - returning lots of info by ethrbunny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.