title: How to print response that returns from a web service
body: <p>I'am new at using web services and trying to understand their structure, how they works etc. I found this example from web. Actually i understand what it does. I want to improve this example. What i want to do is print all values that return from this service but don't know what to do. Any guide or suggestion would be appriciated.</p>
  
  <pre><code>public void GetFeeds()
  {
      WebClient wcXML = new WebClient();
      wcXML.OpenReadAsync(new Uri("http://cloud.tfl.gov.uk/TrackerNet/LineStatus"));
      wcXML.OpenReadCompleted += new OpenReadCompletedEventHandler(wClientUpdate);
  }
  
  /// &lt;summary&gt;        
  /// Web Client Update Read Complete Event        
  /// &lt;/summary&gt;        
  /// &lt;param name="sender"&gt;&lt;/param&gt;        
  /// &lt;param name="e"&gt;&lt;/param&gt;        
  void wClientUpdate(object sender, OpenReadCompletedEventArgs e)
  {
      if (e.Error == null)
      {
          try
          {
              Stream Resultstream = e.Result;
              XmlReader reader = XmlReader.Create(Resultstream);
              XDocument xDocumentLive = XDocument.Load(reader);
              XNamespace ns = "http://webservices.lul.co.uk/";
              List&lt;Feed&gt; feedList = new List&lt;Feed&gt;();
              feedList.AddRange((from query in xDocumentLive.Element(ns + "ArrayOfLineStatus").Elements(ns + "LineStatus")
                             select new Feed
                             {
                                 Name = (string)query.Element(ns + "Line").Attribute("Name").Value,
                                 Description = (string)query.Element(ns + "Status").Attribute("Description").Value,
                                 isActive = (string)query.Element(ns + "Status").Attribute("IsActive").Value
                             }).ToList());
          }
          catch (Exception ex)
          {
          }
      }
  </code></pre>