Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending large file contents in SOAP call using SOAP::Lite
by keszler (Priest) on Oct 18, 2013 at 01:40 UTC | |
|
Re: Sending large file contents in SOAP call using SOAP::Lite
by Anonymous Monk on Oct 18, 2013 at 01:36 UTC | |
by Anonymous Monk on Oct 18, 2013 at 17:34 UTC | |
by Anonymous Monk on Oct 19, 2013 at 03:59 UTC |