Skip to content

Instantly share code, notes, and snippets.

@agenteo
Created December 2, 2009 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agenteo/246799 to your computer and use it in GitHub Desktop.
Save agenteo/246799 to your computer and use it in GitHub Desktop.
require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
wsdl_url = "http://YOU-URL-HERE?wsdl"
driver = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
driver.options["protocol.http.basic_auth"] << [wsdl_url, "USER", "PASS"]
response = driver.functionHere(1, 2, 3)
driver.reset_stream
puts response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment