I've been trying to get digest authentication working for soap calls for
two weeks now. All the examples I find seem to be flawed. Here's the
code that I'm using which is right out of the httpclient docs.
I've changed the server url because I don't want to expose it's
location.
The error I get is:
c:/ruby/lib/ruby/1.8/soap/property.rb:269:in `check_lock': cannot add
any key to locked property (TypeError)
from c:/ruby/lib/ruby/1.8/soap/property.rb:192:in
`local_referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:230:in `referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:106:in `[]'
from C:/Documents and Settings/Administrator/Desktop/mxpua.rb:19
The line numbers in mxpua.rb won't match up, but I'm sure you guys see
where it's failing.
Any help with this would be great. I can't understand how all the
examples I find would all be wrong, but they all seem to use the same
process to add the digest auth information to the object.
I have a bit of information, if you are still working on this.
I believe this line
driver.options["protocol.http.digest_auth"]
should really be
driver.options["protocol.http.auth"]
If the server accepts basic authentication, that will be used.
If the server accepts digest authentication, that will be used.
I send authentication information to the server in both cases,
but only the first option (basic) is accepted by the server.
I would like to know if it works for you now?
Soren
Ryan Q. wrote:
···
Hello all,
I've been trying to get digest authentication working for soap calls for
two weeks now. All the examples I find seem to be flawed. Here's the
code that I'm using which is right out of the httpclient docs.
I've changed the server url because I don't want to expose it's
location.
The error I get is:
c:/ruby/lib/ruby/1.8/soap/property.rb:269:in `check_lock': cannot add
any key to locked property (TypeError)
from c:/ruby/lib/ruby/1.8/soap/property.rb:192:in
`local_referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:230:in `referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:106:in `'
from C:/Documents and Settings/Administrator/Desktop/mxpua.rb:19
The line numbers in mxpua.rb won't match up, but I'm sure you guys see
where it's failing.
Any help with this would be great. I can't understand how all the
examples I find would all be wrong, but they all seem to use the same
process to add the digest auth information to the object.
The error I get is:
c:/ruby/lib/ruby/1.8/soap/property.rb:269:in `check_lock': cannot add
any key to locked property (TypeError)
from c:/ruby/lib/ruby/1.8/soap/property.rb:192:in
`local_referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:230:in `referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:106:in `'
from C:/Documents and Settings/Administrator/Desktop/mxpua.rb:19
Are you running into this issue? I am trying to perform basic
authentication and getting the same exception.
The error I get is:
c:/ruby/lib/ruby/1.8/soap/property.rb:269:in `check_lock': cannot add
any key to locked property (TypeError)
from c:/ruby/lib/ruby/1.8/soap/property.rb:192:in
`local_referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:230:in `referent'
from c:/ruby/lib/ruby/1.8/soap/property.rb:106:in `'
from C:/Documents and Settings/Administrator/Desktop/mxpua.rb:19
Are you running into this issue? I am trying to perform basic
authentication and getting the same exception.
SSL shouldn't be a factor here. The service I'm trying to access is
clear-text http. Just using digest authentication.
The error that I'm getting in Ruby looks to be that I can't modify the
'driver' object once it's been created.
I'm guessing that there is either a way to pass those options as the
object is getting created or there is a different syntax to modify the
object after it's been created, but before the SOAP call gets sent.