Question about SOAP and basic auth

Hi,

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’

WSDL_URL=“http://demo/axis/services/LogoService?wsdl

soap = SOAP::WSDLDriverFactory.new(WSDL_URL).createDriver
soap.options[“protocol.http.basic_auth”] <<
[“http://demo1.red-web.org:8080/",“Client/Object/User”,"Password”]

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:in set_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,
Oliver

Hi,

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

Bye,
Oliver