title: JQuery ajax call to cross-domain webservice
body: <p>I would like consume cross-domain web-service from client with jquery</p>
  
  <pre><code>function TestService() {
      $.ajax({
          url: "http://service.asmx/GetGeoCompletionList",
          data: { "prefixText":"eka", "count":"10", "contextKey":"Trace_0$Rus" },
          dataType: "jsonp",
          type: "GET",
          contentType: "application/json; charset=utf-8",
          success: function (data) {
              alert(data);
          },
          error: function (XMLHttpRequest, textStatus, errorThrown) {
              alert(XMLHttpRequest.statusText);
          }
      });
  }
  </code></pre>
  
  <p>At the error hander I have:
  textStatus=<code>parseerror</code></p>
  
  <p>XMLHttpRequest has status <code>200</code> and readyState <code>4</code></p>
  
  <p>errorThrown is <code>jQuery16103495572647140...78197139 was not called</code></p>
  
  <p>I've spent on it for a lot of hours and couldn't make it work. Can u help me?</p>
  
  <p><strong>UPDATED</strong></p>
  
  <p>Thanks, I change to GET, and fix my data string.</p>
  
  <p>Service returns valid JSON object. I can see it at firebug on other site, which consume this service. But that site is getting common json(since it has one domain).</p>
  
  <p>So, if the web-service returns valid JSON(not jsonp), I can't use the same method with jsonp? What can I do for consiming json web-service from other domain?</p>