Forum: Ruby credentials/auth in Ruby SOAP libs?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ea97ad3789541367331966f009f549cb?d=identicon&s=25 Chris McMahon (Guest)
on 2006-03-25 21:44
(Received via mailing list)
Hi...

In Java we can do something like this:
 lm = service.getlmapiSoap();
                 ((Stub)lm).setUsername(userName);
                 ((Stub)lm).setPassword(password);

In Perl we can do something like this:
use SOAP::Lite ;
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
	return $USER => $PASS;
}

but I can't seem to figure out how to pass user/password credentials in
Ruby, preferably with the WSDLDriver:

soap = SOAP::WSDLDriverFactory.new(WSDL_URL).createDriver

anyone know how to do this?
-Chris
This topic is locked and can not be replied to.