Question about SOAP and basic auth


I am just starting to learn ruby and want to use it to automate some
tasks in our project. I am using ruby on windows (the one-click
installer) at the moment.

I have written a small testscript which looks like that.

require ‘soap/wsdlDriver’


soap =
soap.options[“protocol.http.basic_auth”] <<

result = soap.getServiceVersion
puts result

If I run this script I get the following error.

C:\Dokumente und Einstellungen\oa\Desktop>ruby soaptest.rb
c:/ruby/lib/ruby/1.8/soap/netHttpClient.rb:62:in set_basic_auth': basic_auth is not supported under soap4r + net/http. (NotImplementedError) from c:/ruby/lib/ruby/1.8/soap/streamHandler.rb:171:inset_basic_auth’
from c:/ruby/lib/ruby/1.8/soap/streamHandler.rb:170:in `each’

Is there something broken with my setup? Am I doing something wrong?
Some hints would be very kind.

Best regards,


reading the testcode I understood what I did wrong. After I installed
http-access2 everything works fine.