My issue is that I need to send a TCP message from a web page. This is not possible for security reasons, so I have written a C# function in a program that is already running as part of my production environment to send the TCP message, and I want to invoke that method via the web page. I basically need to host a web service and call a C# function in that web service from javascript in a web page. How can I do this simply?
I have looked around at solutions like asp.net (my web page is part of a GIANT web client that does not and will not be able to utilize .aspx files), and WCF (which seems like overkill for simply sending a TCP message), but none seem to really nail down my intent of calling a C# function in a project that I have already made, from a web client that is already large relatively unchangeable.
Note that what I really want to do is be able to call C# code in a project I've already made and plan to deploy, so what I'd love to be able to add REST functionality to a method there, but I am also very open to simple/smart solutions outside of my existing project to an extent.
Thanks for any guidance!