title: Web Service: Want to Return Serializable Dictionary But It Shows DataSet
body: <p>I want to return the Dictionary collection from the webservice.  Since we could not directly return Dictionary Type from the webservice, I made the Serializable Dictionary as described in  <a href="http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx" rel="noreferrer">this link</a></p>
  
  <p>It is fine and I could return the collection as xml below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;SerializableDictionaryOfStringString xmlns="http://tempuri.org/"&gt;
    &lt;Item&gt;
      &lt;Key&gt;
        &lt;string xmlns=""&gt;k1&lt;/string&gt;
      &lt;/Key&gt;
      &lt;Value&gt;
        &lt;string xmlns=""&gt;abcdef&lt;/string&gt;
      &lt;/Value&gt;
  
    &lt;/Item&gt;
    &lt;Item&gt;
      &lt;Key&gt;
        &lt;string xmlns=""&gt;k2&lt;/string&gt;
      &lt;/Key&gt;
      &lt;Value&gt;
        &lt;string xmlns=""&gt;xyz&lt;/string&gt;
      &lt;/Value&gt;
  
    &lt;/Item&gt;
  &lt;/SerializableDictionaryOfStringString&gt;
  </code></pre>
  
  <p>However, the problem occurs when consuming this webservice.  Instead of the SerializableDictionary Return Type, my web service method shows the return data type as DataSet.  I don't know how to handle the return data and utilize because although it returns as the Dataset, it is not actually the dataset and I could not do anything with it such as bind to gridview, ds.tables[0], etc....</p>
  
  <p>So, how can I manipulate the return data from the webservice?</p>