I can recommend using Savon to work with SOAP in Ruby!
I assume this is the normal HTTP authentication you are dealing with, in which case it should be pretty simple. Simply:
client = Savon::Client.new do http.auth.basic "user_name", "password" # Use a local wsdl wsdl.document = File.expand_path("../wsdl/ebay.xml", __FILE__) # or from internet wsdl.document = "http://service.example.com?wsdl" # to list SOAP actions client.wsdl.soap_actions end
(this is just from my head, so it can be turned off a bit) Read the link I posted and let me know if you cannot figure it out. :)
The certificate file is used for your computer to accept the identifier of the server to which you want to connect. If you installed it on your computer, I donโt think you need to do anything in this part.
EDIT
If you cannot use the WSDL file, you will have to manually create the xml, which is pretty ugly, but possible if it is not. Nokogiri can be used to create an xml document, then you can just POST the XML document to the correct URL. I have good experience using httpi-ntlm for authentication.
source share