Skip to content

Instantly share code, notes, and snippets.

@mickeb
Created November 14, 2010 09:58
Show Gist options
  • Save mickeb/676055 to your computer and use it in GitHub Desktop.
Save mickeb/676055 to your computer and use it in GitHub Desktop.
savon.rb
require "rubygems"
require "bundler/setup"
require "httpclient"
require "savon"
client = Savon::Client.new do
wsdl.document = "http://www.27seconds.com/Holidays/US/Dates/USHolidayDates.asmx?WSDL"
end
#puts client.wsdl.endpoint
#puts client.wsdl.namespace
response = client.request :tns, :get_new_year do
soap.namespaces["xmlns:tns"] = "http://www.27seconds.com/Holidays/US/Dates/"
soap.body = { "tns:year" => "2006" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment