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