From: Ingo Weiss Date: 2006-06-26T16:21:17+09:00 Subject: SOAP (NDFD weather web service) question Hi, Did by any chance anybody get the NDFD weather web service (http://www.nws.noaa.gov/forecasts/xml/#use_it) to work in Ruby? Being new to SOAP/Ruby, here is what I (unsuccessfully) tried: require 'soap/rpc/driver' ndfd = SOAP::RPC::Driver.new('http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php', 'http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl') ndfd.add_method('NDFDgenByDay') puts ndfd.NDFDgenByDay(38.99, -77.99, '24 hourly', '2004-04-27', 3) When I run the script I get the following error: /usr/local/lib/ruby/1.8/soap/rpc/driver.rb:230:in `NDFDgenByDay': wrong number of arguments (5 for 0) (ArgumentError) from weather.rb:6 I also tried to call the method like this: puts ndfd.NDFDgenByDay('Latitude' => 38.99, 'Longitude' => -77.99, 'Format' => '24 hourly', 'Start Date' => '2004-04-27', 'Number of Days' => 3) but got the same error I just don't get why the method seems to expect "O" arguments? Ingo -- Posted via http://www.ruby-forum.com/.