title: ReadAsDataContract exception while reading namespace
body: <p>I'm trying to consume twitter's REST api mentioned at this <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-friends_timeline" rel="nofollow noreferrer">link</a> using WCF REST starter kit mentioned at this <a href="http://msdn.microsoft.com/en-us/library/ee391967.aspx" rel="nofollow noreferrer">link</a>. </p>
  
  <p>I'm using the same objects in DataContract as mentioned in the article - statusList and status.</p>
  
  <pre><code>[assembly: ContractNamespace("", ClrNamespace = "TwitterShell")]
  [CollectionDataContract(Name = "statuses", ItemName = "status")]
  public class statusList : List&lt;status&gt; { }
  public class user
  {
      public string id;
      public string name;
      public string screen_name;
  }
  public class status
  {
      public string id;
      public string text;
      public user user;
  }
  </code></pre>
  
  <p>I'm reading the XML contents using ReadAsDataContract() method.</p>
  
  <pre><code>HttpClient http = new HttpClient("http://twitter.com/statuses/");
  http.TransportSettings.Credentials =
      new NetworkCredential("{username}", "{password}");
  HttpResponseMessage resp = http.Get("friends_timeline.xml");
  resp.EnsureStatusIsSuccessful();
  statusList sList = resp.Content.ReadAsDataContract&lt;statusList&gt;();
  </code></pre>
  
  <p>And I get the following exception. I have not defined the following namespace at all. </p>
  
  <p>Error in line 1 position 24. Expecting element 'statuses' from namespace '<a href="http://schemas.datacontract.org/2004/07/sitename" rel="nofollow noreferrer">http://schemas.datacontract.org/2004/07/sitename</a>'.. Encountered 'Element'  with name 'statuses', namespace ''.</p>
  
  <p>Please help. Thanks.</p>