Hi,

I am using SOAP::Lite (latest version) to make call to a webservice with large file (about 50MB). I am using following code. I see that when making soap call the memory usage is very high (approx 1.5GB). And if I go above 60MB, I am running out of memory and perl scripting is exiting with out making the SOAP call. Is this the error in the SOAP::Lite module or I am using it the wrong way. Also, what is a better way to make a SOAP call with large data. Please see below for the code I am currently using:

#Read the file my $value = read_file( $attachmentFilename , binmode => ':raw', scalar +_ref => 1 ); my @params = ( $header, SOAP::Data->name(fileName => $attachFilename), SOAP::Data->name(taskDataContent => encode_base64($$val +ue)), #base64 encode the file contents SOAP::Data->name(results => $results)); #Call the webservice with SOAP::Lite $returnResult = $soap->call($ptrMethod => @params);

Any help is greatly appreciated.

Thanks, Ana

In reply to 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.