title: Calling a C# windows service function through javascript
body: <p>I am working on a windows service that acts as a medium between a web application and a standalone client side program. In a nutshell: Before submitting a form on my web application, I want it to be encrypted by my client side standalone program. The medium of communication has to be the windows service. </p>
  
  <blockquote>
    <p>My question is: How do I call a C# function in my service through JS? (This function will help me relay data back and forth between the website and the standalone application) </p>
  </blockquote>
  
  <p>I was successfully using an applet to act as the medium before but I have shunned that idea as many security issues are being plotted off late.</p>