Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4590436
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:15:05+00:00 2026-05-21T22:15:05+00:00

This ruby code works great: require ‘soap/wsdlDriver’ wsdl_url = ‘http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl’ proxy = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver print

  • 0

This ruby code works great:

require 'soap/wsdlDriver'
wsdl_url = 'http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl'
proxy = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
print proxy.NDFDgen(35.05,-106.65,"glance","2010-11-20T00:00:00","2010-11-20T07:00:00","temp")

This Perl code returns an empty string:

use SOAP::Lite; 
$client = SOAP::Lite->new(proxy => "http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"); 
$som = $client->call("NDFDgen", 35.05,-106.65,"glance","2010-11-20T00:00:00","2010-11-20T07:00:00","temp"); 
die $som->fault->{ faultstring } if ($som->fault); 
print $som->result, "\n"; 

Pray tell why? (the Perl code is almost a direct copy/paste from “perldoc SOAP::Lite”).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:15:06+00:00Added an answer on May 21, 2026 at 10:15 pm

    The ruby code you reference does not work as expected — it will return more than just the ‘temp’ forecast. See http://g.chasefox.net/clearos/ruby/noaa-nws-ndfd

    And regarding the perl code, I suggest reviewing NOAA’s example. They have provided examples in a few languages, one of which is perl, which utilizes SOAP::Lite. See: http://www.weather.gov/forecasts/xml/sample_products/ndfdXML.tar

    print SOAP::Lite
          ->proxy('http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php')
          ->uri('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl')
          ->NDFDgen(SOAP::Data->name("latitude" => 35.05),
                    SOAP::Data->name("longitude" => -106.65),
                    SOAP::Data->name("product" => "glance"),
                    SOAP::Data->name("startTime" => "2011-05-08T00:00:00"),
                    SOAP::Data->name("endTime" => "2011-05-09T00:00:00"),
                    SOAP::Data->name("weatherParameters" => 'blah') )
           ->result
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(A while back I read this great post: http://aaronlongwell.com/2009/06/the-ruby-on-rails-cms-dilemma.html , discussing the Rails CMS
I think this question is a matter of writing nice ruby code, let me
how can I run ruby code inside javascript in haml? if I use var
I've got this block of code: date_counter = Time.mktime(2011,01,01,00,00,00,+05:00) @weeks = Array.new (date_counter..Time.now).step(1.week) do
Why would I get NoMethodError on my Heroku app when the same code works
I am running rspec 2.5.1, ruby 1.9.2, and rails 3.0.5 I moved some of
I'm testing a web application with ruby 1.8.7 and WATiR and I'd like to
Can someone tell me the exact steps (be specific) to test (write tests and
I'm using the madebydna version of Ryan Bates' nested_form gem from GitHub (can be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.