Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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


Comment on Re: Obtaining both XML and parsed object from SOAP::Lite?
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996590]
help
Chatterbox?
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: (8)
As of 2014-12-27 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls