473,467 Members | 1,487 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

consuming the noaa web service

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 something wrong.

Have any of you ever done this?
I have a web reference to their wsdl
(http://www.nws.noaa.gov/forecasts/xm...l/ndfdXML.wsdl) and
the following code always times out:

Dim oWeather As New gov.noaa.nws.www.ndfdXML
Dim strReturn As String

Try
strReturn =
oWeather.NDFDgenByDay(38.32,-106.56,"2004-12-30", 1,
gov.noaa.nws.www.formatType.Item12hourly)

Catch ex As Exception
strReturn = ex.Message
End Try

lblweather.Text = strReturn

-------

Any hints would be appreciated!

Matt
Nov 19 '05 #1
3 1650
"MattB" <so********@yahoo.com> wrote in message
news:33*************@individual.net...
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 something wrong.

Have any of you ever done this?
I have a web reference to their wsdl
(http://www.nws.noaa.gov/forecasts/xm...l/ndfdXML.wsdl) and the
following code always times out:

Dim oWeather As New gov.noaa.nws.www.ndfdXML
Dim strReturn As String

Try
strReturn = oWeather.NDFDgenByDay(38.32,-106.56,"2004-12-30",
1, gov.noaa.nws.www.formatType.Item12hourly)

Catch ex As Exception
strReturn = ex.Message
End Try

lblweather.Text = strReturn


I just tried it and got a timeout as well. I'm trying it again after raising
the timeout (I'm going to watch some TV and come back):

oWeather.Timeout = 1 * 60 * 60 * 1000 ' Before the Try

John Saunders
Nov 19 '05 #2
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"MattB" <so********@yahoo.com> wrote in message
news:33*************@individual.net...
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 something wrong.

Have any of you ever done this?
I have a web reference to their wsdl
(http://www.nws.noaa.gov/forecasts/xm...l/ndfdXML.wsdl) and the
following code always times out:

Dim oWeather As New gov.noaa.nws.www.ndfdXML
Dim strReturn As String

Try
strReturn = oWeather.NDFDgenByDay(38.32,-106.56,"2004-12-30",
1, gov.noaa.nws.www.formatType.Item12hourly)

Catch ex As Exception
strReturn = ex.Message
End Try

lblweather.Text = strReturn


I just tried it and got a timeout as well. I'm trying it again after
raising the timeout (I'm going to watch some TV and come back):

oWeather.Timeout = 1 * 60 * 60 * 1000 ' Before the Try


With the higher timeout, I get:

[WebException: The underlying connection was closed: An unexpected error
occurred on a receive.]
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
WebApplication1.gov.noaa.nws.www.ndfdXML.NDFDgenByDay(Decimal latitude,
Decimal longitude, DateTime startDate, String numDays, formatType format) in
d:\inetpub\wwwroot\WebApplication1\Web
References\gov.noaa.nws.www\Reference.vb:60
WebApplication1.WebForm1.Button2_Click(Object sender, EventArgs e) in
d:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.v b:74
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain() +1292
I think their service may be down.

John Saunders
Nov 19 '05 #3
John Saunders wrote:
"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
"MattB" <so********@yahoo.com> wrote in message
news:33*************@individual.net...
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 something wrong.

Have any of you ever done this?
I have a web reference to their wsdl
(http://www.nws.noaa.gov/forecasts/xm...l/ndfdXML.wsdl) and the
following code always times out:

Dim oWeather As New gov.noaa.nws.www.ndfdXML
Dim strReturn As String

Try
strReturn = oWeather.NDFDgenByDay(38.32,-106.56,"2004-12-30",
1, gov.noaa.nws.www.formatType.Item12hourly)

Catch ex As Exception
strReturn = ex.Message
End Try

lblweather.Text = strReturn


I just tried it and got a timeout as well. I'm trying it again after
raising the timeout (I'm going to watch some TV and come back):

oWeather.Timeout = 1 * 60 * 60 * 1000 ' Before the Try

With the higher timeout, I get:

[WebException: The underlying connection was closed: An unexpected error
occurred on a receive.]
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
WebApplication1.gov.noaa.nws.www.ndfdXML.NDFDgenByDay(Decimal latitude,
Decimal longitude, DateTime startDate, String numDays, formatType format) in
d:\inetpub\wwwroot\WebApplication1\Web
References\gov.noaa.nws.www\Reference.vb:60
WebApplication1.WebForm1.Button2_Click(Object sender, EventArgs e) in
d:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.v b:74
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain() +1292
I think their service may be down.

John Saunders


Thanks for checking. Sort of a relief, yet annoying too. I guess I'm
getting what I paid for with this free service!

Matt
Nov 19 '05 #4

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

Similar topics

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...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.