Created
March 25, 2011 05:42
-
-
Save temojin/886409 to your computer and use it in GitHub Desktop.
Non working savon SOAP request without WSDL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'savon' | |
Savon.configure do |config| | |
config.log_level = :debug | |
end | |
client = Savon::Client.new do | |
wsdl.endpoint = "http://www.webservicex.net/globalweather.asmx" | |
wsdl.namespace = "http://www.webserviceX.NET" | |
end | |
client.get_cities_by_country! do |soap| | |
soap.action="GetCitiesByCountry" | |
soap.namespace="http://www.webserviceX.NET" | |
soap.input="GetCitiesByCountryRequest" | |
soap.body = { | |
:Country_name => "United States" | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the documentation for savon >= v.0.8 can be found at: http://rubiii.github.com/savon