Forum: Ruby SOAP access problems

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2e3d01ef4f4cb07809aaacf837b0d006?d=identicon&s=25 Alex Amat (alexamat)
on 2007-01-26 15:58
Hi all

i have been trying to access a wsdl file that is password protected, if
i do and http request like that:

wsdl_url = 'http://localhost:8080/xplanner/soap/XPlanner?wsdl'
user = xxx
pass = xxx

http ='localhost', 8080)
http.start do |http|
    request ='/xplanner/soap/XPlanner?wsdl')
    request.basic_auth user, pass
    response = http.request(request)
    puts @soap.inspect

i can get to the wsdl, however if i call the file using the following

@soap =
@soap.options["protocol.http.basic_auth"] << [wsdl_url, user, pass]

i get a 401 error

Any ideas of what I'm doing wrong ?

This topic is locked and can not be replied to.