Is this the error in the SOAP::Lite module or I am using it the wrong way.

Yeah, 1.5GB seems like there might be a problem ... but not where, I doubt its within SOAP::Lite

perl -Mojo -e " b( shift )->slurp->b64_encode->say; int <>; " 49_678_352_bytesfile > 65M-b64ed

This takes about ~130mb on my machine, and around 20mb of that is perl -Mojo itself alone

I can't imagine SOAP::Lite tacking eleven times that amount, maybe one or three temporarily, but not eleven

Without mojo, with File::Slurp+SOAP::Lite, to slurp this 65M b64ed file takes about 74mb, 1500mb/74mb = 20 so still nowhere in the ballpark

I don't feel like looking into it past this; You can try

$soap->serializer()->envelope( method => 'DoThis', $param ),
to see how much memory it takes to compose that request you're using -- shouldn't be 1.5 GB

I imagine it is the response that you're getting (your program is getting) to that request is an xml bomb ... or something else entirely

Also, what is a better way to make a SOAP call with large data

I imagine maybe https://metacpan.org/module/SOAP::Lite#ATTACHMENTS,

or even XML::Compile::XOP

but if your server doesn't accept that :)

Good luck


In reply to Re: Sending large file contents in SOAP call using SOAP::Lite by Anonymous Monk
in thread Sending large file contents in SOAP call using SOAP::Lite by Anonymous Monk

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.