Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Compression with SOAP::Lite

by mohan2monks (Beadle)
on Apr 08, 2011 at 07:48 UTC ( #898289=note: print w/ replies, xml ) Need Help??


in reply to Compression with SOAP::Lite

I have tried with installing latest version of Compress::Zlib but the error persists.
Is downgrading the version recommended?


Comment on Re: Compression with SOAP::Lite
Replies are listed 'Best First'.
Re^2: Compression with SOAP::Lite
by Anonymous Monk on Apr 08, 2011 at 10:28 UTC
    Is downgrading the version recommended?

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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://898289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-08-01 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls