title: jQuery AJAX call to web service producing empty response
body: <p>I'm using jQuery to make an AJAX call to a remote server, but with the code as it is (and ostensibly correct) I get an empty response. If I change the dataType to "script," I get the expected XML in the response, but I'm unable to do anything with it. Here's some pseudocode I'm working with:</p>
  
  <pre>
  function sendData(data)
  { 
   $.ajax(
   {
    type: "GET",
    url: "remote_server",
    dataType: "xml",
    data: "parameter=" + data,
    complete: function(xml)
    {
     console.info('XML result is',xml); 
    },
    contentType: "text/xml; charset=utf-8"
   });
  }
  </pre>
  
  <p>A few additional things to note are that I'm using a local .htm file to call the remote server. When I use a Web browser (<a href="http://remote_server/page?parameter=value" rel="nofollow noreferrer">http://remote_server/page?parameter=value</a>), I get a valid XML response. Finally, the XML response header has encoding type of ASCII, though I've also tried changing the charset value in my code to ASCII with the same result.</p>
  
  <p>I appreciate any help you can provide.</p>