On Apr 9, 5:58 pm, "xml .NET group" <xmlnet@xml> wrote:
> I am trying to consume web services athttp://www.nws.noaa.gov/forecasts/xml/
> using the web referencehttp://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl
>
> My code is as follows:
> gov.weather.www.ndfdXMLproxy = new gov.weather.www.ndfdXML();
>
> string xmlData = proxy.NDFDgenByDay(47.72, -122.02, DateTime.Today.Date,
> "5", "24 hourly");
>
> But I get error:
> The best overloaded method match for
> 'gov.weather.www.ndfdXML.NDFDgenByDay(decimal, decimal, System.DateTime,
> string, string)' has some invalid arguments
>
> Any idea??
> Thanks!
Change "24 hourly" to gov.weather.
www.formatType.Item24hourly