title: Invoking WCF Service through Javascript
body: <p>How can I access the WCF Service through JavaScript?
  My problem is, I have to access the operation contracts through the JavaScript (my website is not Ajax enabled).<br>
  Previously for calling .asmx web services, 
  I am using the following code snippet</p>
  
  <pre><code>var xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp.open("POST", URL, false);
  xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlHttp.send(payload);
  xmlData = xmlHttp.responseXML;
  </code></pre>
  
  <p>where url is my webservice location.</p>
  
  <p>Now if I am trying to consume the wcf service in the same manner, I am not able to.
  Many techies are explaining through AJAX approach, 
  I need an approach without AJAX.</p>