in reply to SOAP::Lite - preprocess response?

See Re^3: Force integer to occupy 64 bits (bytes), see LWP::Debug, use $soap->transport->add_handler("response_done", \&content_modifier ) ; or another https://metacpan.org/module/LWP::UserAgent#Handlers

Or Re: SOAP::Serializer::envelope: Client Application failed during request deserialization/ http://cookbook.soaplite.com/#overriding%20deserializer%20%28server%29  $soap    -> deserializer(MyDeserializer->new)

  • Comment on Re: SOAP::Lite - preprocess response? ( $soap->transport->add_handler("response_done", \&content_modifier )
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: SOAP::Lite - preprocess response? ( $soap->transport->add_handler("response_done", \&content_modifier )
by thewebsi (Scribe) on Aug 16, 2013 at 04:31 UTC

    Perfect! This worked like a charm:

    use SOAP::Lite; my $client = SOAP::Lite->new( proxy => $proxy ); $client->transport->add_handler ( "response_done", sub{ chop ( ${$_[0]->content_ref()} ); } ); my $result = $client->call( $method => @arguments );