2

With SoapUI, I am successfully connecting to a SOAP API with details such as:

Initial WSDL: http://11.11.1.11:7303/FOO/BAR/BAZ
Username: foo
Password: bar
Domain: example

But I am not sure how to do this with Savon. I am trying this (not quite understanding if ntlm is the correct setting here):

savon_defaults   =  {
  :wsdl                     => "http://11.11.1.11:7303/FOO/BAR/BAZ",
  :ntlm                     => ["foo", "bar", "example"],
  :log_level                => :debug,
  :pretty_print_xml         => true,
  :log                      => true
}
@client = Savon.client(savon_defaults)
@client.call(:foo, :message => {:bar => "baz"})

The above outputs:

D, [2020-05-18T21:21:14.853929 #7156] DEBUG -- : HTTPI /peer GET request to 11.11.1.11 (httpclient)
Savon::HTTPError: HTTP error (401)

Any ideas?

JohnSmith1976
  • 536
  • 2
  • 12
  • 35

0 Answers0