473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Consuming NOAA XML web service

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!
Apr 9 '07 #1
2 6169
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!

Apr 9 '07 #2
On Apr 9, 5:58 pm, "xml .NET group" <xmlnet@xmlwrote:
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

Apr 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MattB | last post by:
Hi. I'm trying to write a web form that will consumer the NOAA's web service. I keep getting a timeout from my .net stuff, but their demo seems to be getting live data, so I suspect I'm doing...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
6
by: kbs | last post by:
Hi, I'm looking for some good examples that illustrate how to code a web service that exposes a custom collection so that the properties of the collection are accessible on the client without...
2
by: Glenn Venzke | last post by:
Is there any way to tell what type of application is consuming a web service? I'm writing a web service that returns a string with 2 carriage returns. What I want to do is replace these carriage...
2
by: s | last post by:
'project with web service <webmethod()> _ public function myws(id as integer) 'do db stuff with id and build document Dim xd As New XmlDataDocument...
0
by: plmanikandan | last post by:
I need to develop a application to consume a webservice. For consuming web service i tried a example in Consuming a Web Service in C# in http://www.csharphelp.com.But i am uanble to use that...
3
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object...
2
by: xml .NET group | last post by:
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/DWMLgen/wsdl/ndfdXML.wsdl My code is as follows:...
1
by: =?Utf-8?B?R29yZG9u?= | last post by:
Hi; I can consume a web service from an asp.net application with no problem. The web service connects to a remote server through ODBC and returns a data set to the consuming software. When...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.