Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Obtaining both XML and parsed object from SOAP::Lite?

by Anonymous Monk
on Oct 01, 2012 at 06:35 UTC ( #996590=note: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re^2: Obtaining both XML and parsed object from SOAP::Lite?
by vitoco (Friar) on Oct 01, 2012 at 12:25 UTC

    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;
      Well, headers can contain valuable info, but if you're only after content, maybe you want decoded_content, in case tar/gzip...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-09-30 22:40 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (574 votes). Check out past polls.