I use the jQuery.ajax function to make a GET request to the following asp.net webservice:
[WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public string GetAgentsGroupNameById(int id)
I set the contentType to be 'application\json' and the dataType to be 'jsonp' but I still get an xml response:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="tempuri.org/">Sports</string>;
Here are the details of the request and the response, as shown in the chrome's dev tools:
Am I doing something wrong with the request? or maybe with the webservice itself?