Hello,
I have created wcf service and consume it in html page in website in same solution.
I have used jquery ajax to call wcf service in html page which return response in json format... it works fine in IE browser but gives an "405 method not found" error in firefox and crome..
My code to call service as below:
function CallMyService()
{
// jQuery.support.cors = true;
$.ajax({
type: "GET",
url: "http://localhost:49868/RestService.svc/GetEmployeeList",
data: '{}',
contentType: "application/json;charset-uf8", // content type sent to server
success: ServiceSucceeded,
cache:true,
datatype :'json',
error: ServiceFailed
});
}