I built a demo over the past few days importing data from the National Weather Service's web services, and today it's broken:
System.Xml.XmlException - {"'', hexadecimal value 0x1F, is an invalid character. Line 1, position 1."}
I'm importing the WSDL as a web reference and using the objects directly, not making the SOAP calls manually or loading an XML.
http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl
http://graphical.weather.gov/xml/
Any ideas on how to fix this? here's some simplified code:
using gov.weather.graphical;
...
string sList = "30.267,-97.743 30.267,-97.743 32.9612,-96.8372 33.1097,-96.6695";
ndfdXML service = new ndfdXML();
string sResult;
DateTime startDate = Convert.ToDateTime(DateTime.Now.ToShortDateString() + " 00:00:00 AM");
DateTime endDate = Convert.ToDateTime(startDate.ToShortDateString() + " 23:59:59 PM");
string sListCurrent = aList[x].ToString();
sResult = service.NDFDgenLatLonList(sList, productType.glance, startDate, endDate, unitType.e, wpt);