I do hope that I describe the problem that I have correctly.
We used to have an ActiveX lib that a web page (using client side javescript) was using to do stuff and to handle the events raised by the activex library. the ActiveX communicates with tcp to a server.
We want to replicate the scenario by using modern technology.
So I was thinking of creating a windows service (WCF ? ) that communicates with the server using tcp sockets and have all needed communication.
This service Must be able to raise events when some things in server occur.
This communication must be kept alive in order for the service to keep getting data until we choose to "close the Channel"
Then my web page will reference (client side) this local service and be able to handle the above events.
In current code the webpage has something like this :
<object classid="CLSID:1234-5678-906666666666" id="byobjectname" v:shapes="_x0000_s1025" class="shape" width="60" height="55">
<param name="ServerName" value="111.111.111.111"/>
<param name="NetworkType" value="ncacn_ip_tcp"/>
</object>
then in my code we have something like this
<SCRIPT LANGUAGE="javascript" FOR=byobjectname EVENT="MyEvent1 (Value1,newValue2)">
What technologies should we use to implement this Using visual studio c# or vb.net
Are there any examples of sources for me to read.
Thank you in advance
What I have tried:
So far I have tried with web services to communicate with the server but I wanted to keep the connection alive and each web service call to have a unique instance to get back events. so I went to local web service to each client pc.