Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Consuming NOAA XML web service

Reply
Thread Tools

Consuming NOAA XML web service

 
 
xml .NET group
Guest
Posts: n/a
 
      04-09-2007
I am trying to consume web services at
http://www.nws.noaa.gov/forecasts/xml/
using the web reference
http://www.weather.gov/forecasts/xml...l/ndfdXML.wsdl

My code is as follows:
gov.weather.www.ndfdXML proxy = 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!


 
Reply With Quote
 
 
 
 
Charles Zhang
Guest
Posts: n/a
 
      04-09-2007
I think the compiler treat 47.72 as "DOUBLE", using "47.72m" so that the
compiler will treat it as decimal.

Charles Zhang
SpeedyDB Technologies (SpeedyDB ADO.NET Provider)
http://www.speedydb.com


xml .NET group wrote:
> I am trying to consume web services at
> http://www.nws.noaa.gov/forecasts/xml/
> using the web reference
> http://www.weather.gov/forecasts/xml...l/ndfdXML.wsdl
>
> My code is as follows:
> gov.weather.www.ndfdXML proxy = 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!
>
>

 
Reply With Quote
 
 
 
 
claireliu666@gmail.com
Guest
Posts: n/a
 
      04-13-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Consuming local web service - ok, remote web service -problem? dgleeson422111 ASP .Net Web Controls 0 01-26-2010 11:17 AM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Security 1 01-22-2008 09:08 PM
SOAP Header in a Dot Net 2.0 Web Service Client Consuming a WCF 3.0 service. Curt K ASP .Net Web Services 3 06-15-2007 10:19 PM
Consuming NOAA XML web service xml .NET group ASP .Net 2 04-13-2007 08:46 PM
consuming the noaa web service MattB ASP .Net 3 12-31-2004 03:59 AM



Advertisments