How can i call a wcf service from jquery (i am using asp.nt mvc). This is what i used to do with asmx webservices :
$.ajax({
type: "POST",
url: "Services/MyService.asmx/DoSomething",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
//do the magic
});
}
});
How do I do the same with a WCF service?