in reply to
Obtaining both XML and parsed object from SOAP::Lite?
If you peek at SOAP::Lite sub call you can see my $response = $self->transport->send_receive( and naturally if you see SOAP::Transport you will see http_response, put the two together and you have
my $som = $soap->...;
print $saver $soap->transport->http_response->as_string;
See also Re: More Soap::Lite and this treasure trove of SOAP examples
Well, I previously tried some variations with $soap->http_response, but as a result, the webservice was called a second time. The transport part was what I was missing. Thank you!
BTW, as_string method also returned the HTTP headers... instead, I used:
print OUT $soap->transport->http_response->content;
Results (253 votes),