"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