Esempio n. 1
0
        static void Main(string[] args)
        {
            var    soapService = new ndfdXMLPortTypeClient();
            string result      = soapService.LatLonListZipCode("97477");

            //string result = soapService.LatLonListCityNames("1");
            Console.WriteLine(result);
        }
Esempio n. 2
0
        public string get7DayLowAndHigh(string zip, DateTime beginDateTime)
        {
            // Get latitude and longitude from zip code
            string latLonXml = soapService.LatLonListZipCode(zip);
            string latLon    = XmlParser.ParseZipXml(latLonXml);

            // Get the forecast
            string forecast = soapService.NDFDgenLatLonList(latLon,
                                                            "glance", beginDateTime, beginDateTime.AddDays(7),
                                                            "e", new weatherParametersType()
            {
                mint = true, maxt = true
            });

            // Parse and return a string with the forecast
            return(XmlParser.ParseLowsXml(forecast));
        }
 public void Something()
 {
     ndfdXMLPortTypeClient client = new ndfdXMLPortTypeClient();
     string value= client.LatLonListZipCode("20912");
     Console.WriteLine(value);
 }