title: Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable?
body: <p>Can an Ajax-enabled WCF Service pass back a DataTable as a Sys.Data.DataTable?
  Like <a href="http://aspadvice.com/blogs/garbin/archive/2006/03/05/15591.aspx" rel="nofollow noreferrer">this</a> but in WCF.</p>
  
  <p>My OperationContract looks like:</p>
  
  <pre><code>    [OperationContract]
      public DataTable GetEmployees()
      {
          NorthwindService ns = new NorthwindService();
          return ns.GetEmployees();
      }
  </code></pre>
  
  <p>Through the Firefox error console I get the message:<br>
  <em>Error: no element found<br>
  Source File: <a href="http://localhost:4845/TestWcfAjax/SomeService.svc/GetEmployees" rel="nofollow noreferrer">http://localhost:4845/TestWcfAjax/SomeService.svc/GetEmployees</a></em></p>
  
  <p>If I enter this URL (above) into the browser I get:<br>
  <em>Method not allowed.</em></p>
  
  <p>I have another method which just returns a string that does work via WCF/ASP.NET Ajax.<br>
  Thoughts? Troubleshooting ideas?</p>
  
  <p>there is no code in the code behind<br>
  <strong>Edit / Added Code:</strong><br>
  Code not figure out how to paste code here in a readable way<br>
  code located here:<br>
  <a href="http://www.mirc.org/paste/92" rel="nofollow noreferrer">http://www.mirc.org/paste/92</a></p>