472,143 Members | 1,161 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

System.IO.IOException: "Unable to read data from the transport connection."

Hi, I've been trying to use the weather webservice
available from the National Weather Service (NWS), at
http://www.nws.noaa.gov/forecasts/xm...n/wsdl/ndfdXML.
wsdl without success. Here's what I've found so far.

When I use .NET 1.0/1.1, and try to call the primary
webservice method NDFDgen, the call will succeed if the
productType is set to "glance", but fail if set to "time-
series".

I know this is starting to sound like I should post this
to the NWS, and tell them their webservice is screwed up
(like that would do any good - trying to get service out
of the federal government), but here's where it turns
really weird. When I use .NET version 2.0 (the beta),
everything works fine. Perfectly fine. No problems with
productType set either way. And the format of the two
responses (xml string, BTW) doesn't seem strange, either.

The client I've been using is as simple as can be, just a
button on a form, with no fancy threading or anything. It
uses the autogenerated classes from the VS.NET IDE (2002)
or wsdl.exe (tried it both ways). Here's the stack trace
(starting at the button click), if anyone is still
reading. Thanks in advance.

An unhandled exception of type 'System.IO.IOException'
occurred in system.dll

Additional information: Unable to read data from the
transport connection.
Unhandled Exception: System.IO.IOException: Unable to read
data from the transport connection.
at System.Net.ConnectStream.BeginRead(Byte[] buffer,
Int32 offset, Int32 size, AsyncCallback callback, Object
state)
at System.Net.ConnectStream.Read(Byte[] buffer, Int32
offset, Int32 size)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer,
Int32 userOffset, Int32 desiredChars, Boolean&
readToUserBuffer)
at System.IO.StreamReader.Read(Char[] buffer, Int32
index, Int32 count)
at System.Xml.XmlScanner.Read()
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.ReadEndElement()
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadRe
sponse(SoapClientMessage message, WebResponse response,
Stream responseStream)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke
(String methodName, Object[] parameters)
at TestNWS.gov.noaa.nws.www.ndfdXML.NDFDgen(Decimal
latitude, Decimal longitude, productType product, DateTime
startTime, DateTime endTime, weatherParametersType
weatherParameters) in
L:\Data\Programming\Weather\TestNWS\Web
References\gov.noaa.nws.www\Reference.cs:line 38
at TestNWS.Form1.button1_Click(Object sender, EventArgs
e) in l:\data\programming\weather\testnws\form1.cs:line 96
Nov 21 '05 #1
0 10974

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by NicK chlam via DotNetMonster.com | last post: by
reply views Thread by leo001 | last post: by

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.