jaco has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to mimic php's ability to have a a SOAP client with persistence. Which i don't think is possible in SOAP::Lite, but perhaps one of you knows a way to pull it off.
use SOAP::Lite +autodispatch => uri =>'api.php', proxy => 'api.php', on_fault => sub { my($soap, $res) = @_; die ref $res ? $res->faultdetail:$soap->transport->status, "\n +"; }; #retuns 1 , which is correct print SOAP->authenticate("user", "pass"); #retuns 0 , which is incorrect, should return 1 print SOAP->checkAuthStatus();
any ideas if SOAP::Lite can handle state like this? A php client written to do the same works correctly.

Replies are listed 'Best First'.
Re: SOAP::Lite and persistence
by gellyfish (Monsignor) on Sep 07, 2005 at 19:19 UTC

    Look at the section in the documentation for SOAP::Transport::HTTP entitled "COOKIE-BASED AUTHENTICATION" - I'm assuming that is how you are maintaining state. If this doesn't work you will need to send us a transcript of what is getting sent over the wire.

    /J\