http://www.weather.gov/xml/#use_it
using wsdl2php I got a new file with 2 classes and some other stuff
The problem is that when I call the class
Code: Select all
$test = new ndfdXML();
$test->NDFDgenByDay(38.99,-77.99,'2007-08-01',7,'24 hourly');When I run this I get this error
C:\php\PEAR>php -f ndfdXML.php
Catchable fatal error: Argument 3 passed to ndfdXML::NDFDgenByDay() must be an i
nstance of date, string given, called in C:\php\PEAR\ndfdXML.php on line 122 and
defined in C:\php\PEAR\ndfdXML.php on line 110
If you look at there example, thbey submit a form and this is what you get
http://www.weather.gov/forecasts/xml/SO ... mit=Submit
It is like is expecting an object instead of a string