title: Calling a Winform hosted WCF service from javascript
body: <p>I have a Winform hosted WCF service with Ajax Web endpoint. </p>
  
  <p>I also have an ASP.NET project separately, with ScriptManager component on the page. </p>
  
  <p>My question is, should that work if I make service calls to my Winform hosted service from the client side of ASP.NET app using javascript? </p>
  
  <p>My ASP.NET Default page looks like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;    
  function Button1_onclick() {        
  // ????How to call a service method?????    
  }
  &lt;/script&gt;
  
  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
      &lt;Services&gt;
             &lt;asp:ServiceReference Path="http://localhost:8000/web" /&gt;  //My winform hosted service
      &lt;/Services&gt;
  &lt;/asp:ScriptManager&gt;
  </code></pre>
  
  <p>Or do I have to host my service in IIS to be consumable by AJAX?</p>