Hi Guys,
I am trying to access a ASMX web service hosted with integrated Window Authentication.
I am using the below code:
require 'rubygems'
require 'savon'
client = Savon.client(wsdl: 'url_of_asmx?wsdl', ntlm: ['user', 'pwd', 'domain']) do
convert_request_keys_to :camelcase
end
puts client.operations
And I am getting the below error:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi/adapt
er/excon.rb:55:in `client_opts': excon does not support NTLM authentication (HTTPI::NotSupportedError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi/adapter/excon.rb:17:in `initialize' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi.rb:163:in `new' from :/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi.rb:163:in `load_adapter' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi.rb:134:in `request' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/httpi-2.2.4/lib/httpi.rb:105:in `get' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/resolver.rb:43:in `load_from_remote' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/resolver.rb:33:in `resolve'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/document.rb:142:in `xml'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/document.rb:160:in `parse'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/document.rb:147:in `parser'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/wasabi-3.3.0/lib/wasabi/document.rb:64:in `soap_actions'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.6.0/lib/savon/client.rb:28:in `operations'
from -:43:in `<main>'
I would appreciate if anyone could help me on this.
Thanks,