http://www.perlmonks.org?node_id=898311


in reply to Re: Compression with SOAP::Lite
in thread Compression with SOAP::Lite

Is downgrading the version recommended?

No, verifying the data sent with something like gzip is recommended

Replies are listed 'Best First'.
Re^3: Compression with SOAP::Lite
by mohan2monks (Beadle) on Apr 08, 2011 at 11:38 UTC
    As this data is sent by SOAP::Lite/LWP, i am not sure how to do it?
    Please advice how do i do it?
    I get the desired result if i dont use options=>{compress_threshold =>1000} in the client.
      Please advice how do i do it?

      Something like

      my $soap ... ->proxy( 'http://localhost/blah/DummyService', timeout => 1 ); $soap->transport->add_handler("request_send", sub { my( $req ) = @_; use autodie; open my $raw, ">', '/my/known/temp.gz'; binmode $raw; print $raw $req->content; close $raw; return; });
      Then you manually examine /my/known/temp.gz with 7-zip or gunzip or ...

      I get the desired result if i dont use options=>{compress_threshold =>1000} in the client.

      Let me understand, eliminating compress_threshold fixes it? Yeah, I'd remove that immediately :)

      I'd also look into SOAP::Simple