Consuming the Service in VS2005

Discussion about Schedules Direct grabber code and data formats.

Re: Consuming the Service in VS2005

Postby whurlston » Wed Sep 12, 2007 10:18 am

It worked like a charm for me. Your work is very much appreciated Tom.
Posts: 62
Joined: Thu Aug 16, 2007 10:43 pm

Re: Consuming the Service in VS2005

Postby jtpowell » Wed Sep 12, 2007 10:59 am

Here's the c# code I have that works for me using Tom's wsdl. Again thanks for the wsdl and sample

Code: Select all
public static void DownloadData()
            string username = ConfigurationManager.AppSettings["username"];
            string password = ConfigurationManager.AppSettings["password"];
            xtvdWebService csService = new xtvdWebService();
            System.Net.ICredentials credentials = new System.Net.NetworkCredential(username,password, string.Empty);
            csService.Credentials = credentials;
            DateTime startTime = DateTime.Now;
            DateTime stopTime = startTime.AddDays(int.Parse(ConfigurationManager.AppSettings["days"]));
            string startString = startTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ", System.Globalization.CultureInfo.InvariantCulture);
            string stopString = stopTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ", System.Globalization.CultureInfo.InvariantCulture);
            xtvdResponse downloadResponse =, stopString);

Posts: 4
Joined: Thu Aug 30, 2007 8:41 am


Return to Developers Corner

Who is online

Users browsing this forum: No registered users and 4 guests