Thread

Posted on Tue Jun 24 01:35:33 2008 by blogzen
Does SOAP::WSDL support cookie-jar?
Hi, Does SOAP::WSDL support cookie-jar? In SOAP::lite I can do:
# build a user agent $ua with cookie_jar # send a request to server to get a cookie new SOAP::Lite->proxy( "https://10.0.0.100", cookie_jar => $ua->cookie_jar())
Is there similar thing in SOAP::Lite? Thanks,
Direct Responses: 8132 | 8134 | Write a response
Posted on Tue Jun 24 01:53:45 2008 by blogzen in response to 8131
Re: Does SOAP::WSDL support cookie-jar?
Oops, I mean is there a similar thing in SOAP::WSDL? Thanks,
Write a response
Posted on Tue Jun 24 05:49:36 2008 by noah in response to 8131
Re: Does SOAP::WSDL support cookie-jar?
Yep; syntax is pretty close to what you're used to:
use MyInterfaces::MyService::ServicePort; use HTTP::Cookies; # # I pass 'ignore_discard => 1' to new(), but you may not need to my $jar = HTTP::Cookies->new(); my $soap = MyInterfaces::MyService::ServicePort->new(); $soap->proxy("https://10.0.0.100/", cookie_jar => $jar); ...
--n
Direct Responses: 8150 | Write a response
Posted on Tue Jun 24 19:24:06 2008 by blogzen in response to 8134
Re: Does SOAP::WSDL support cookie-jar?
Yes, it works. Thank you!
Write a response