# Question about SOAP and basic auth

**URL:** <https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951>\
**Category:** Ruby\
**Created:** [November 27, 2005, 6:28pm UTC](https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951 "2005-11-27T18:28:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver.andrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e7dd6/32.png) [@oliver.andrich](https://www.ruby-forum.com/u/oliver.andrich)\
**Post date:** [November 27, 2005, 6:28pm UTC](https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951/1 "2005-11-27T18:28:39Z")

</div>

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](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](http://demo1.red-web.org:8080/%22,%22Client/Object/User%22,%22Password)”]

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

---

<div class="post-metadata">

**Author:** ![oliver.andrich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8e7dd6/32.png) [@oliver.andrich](https://www.ruby-forum.com/u/oliver.andrich)\
**Post date:** [November 27, 2005, 6:41pm UTC](https://www.ruby-forum.com/t/question-about-soap-and-basic-auth/48951/2 "2005-11-27T18:41:05Z")

</div>

Hi,

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

Bye,  
Oliver
