title: Angular $http post response HTML not JSON
body: <p>I am developing an application in angularjs, I need return  the MSSQL data, I'm using a web service that returns a JSON object with this data, but the response doesn't work like I need.  </p>
  
  <p>The Request(Angular) is: </p>
  
  <pre><code>var ticks = null;
  $http({
     url: "http://[TheIp]:2080/Neptuno.aspx/Query",
      dataType: "json",
      type: "POST",
      contentType: "application/json; charset=utf-8"
  }).
    success(function(data, status, headers, config) {
      console.log(data);
      // this callback will be called asynchronously
      // when the response is available
    }).
    error(function(data, status, headers, config) {
      console.log("errer");
    });
  </code></pre>
  
  <p>But the response is the HTML page not the JSON </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; ...
  </code></pre>
  
  <p>In my Web Method I have this, and works fine (when I run this in the ASPX page)</p>
  
  <pre><code>[WebMethod]
      [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
      public static string Query() {
          DataTable dt = new DataTable();
  
          dt = Asgard.ConsultaCombos("*", "ticket");
          string js = jsonCast(dt);
          return js;
      }
  </code></pre>
  
  <p>I really been searching but don't find info 
  I been test JSONP but I don't know what response should be the WebMethod </p>
  
  <p>Thanks.</p>
  
  <p>Note: I try wit JS bin and this response:  [Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.]</p>