I have 2 windows systems on my network.
System-1 has images to serve and system-2 should display the
images.
On power-on of system-2, it will call the webservice on system-1
and gets an image and displays it.
So far so good, and this I managed to implement easily.
However now I want to be able to change the image on System-2, using a
GUI interface from system-1.
Idea is that system-1 should inform system-2 that it should change its image!
How can I accomplish this?
Should I also run a webservice on system-2 to accomplish this?
Is there any better way to think about this problem.
Probably using windows services?
I am new to windows programming, and not sure what is the best possible approach to
accomplish this. Can someone enlighten me? Thank you.
Based on my understanding, you can create a webservice on system 2 and if the image on the system 1 was being changed, then you can call that webservice to inform System 2. or you could use WCF dual binding (e.g: WSDualHttpBinding) which allows service to
communicate with client.
You want to call web service on system 1 in the windows task schedule and then schedule this task to run at periodical time, this approach could also complete above goal.
vividpath
Member
1 Points
6 Posts
webservices and communication
Apr 23, 2012 02:23 PM|LINK
I have 2 windows systems on my network.
System-1 has images to serve and system-2 should display the
images.
On power-on of system-2, it will call the webservice on system-1
and gets an image and displays it.
So far so good, and this I managed to implement easily.
However now I want to be able to change the image on System-2, using a
GUI interface from system-1.
Idea is that system-1 should inform system-2 that it should change its image!
How can I accomplish this?
Should I also run a webservice on system-2 to accomplish this?
Is there any better way to think about this problem.
Probably using windows services?
I am new to windows programming, and not sure what is the best possible approach to
accomplish this. Can someone enlighten me? Thank you.
Peter pi - M...
Star
12871 Points
1786 Posts
Re: webservices and communication
Apr 25, 2012 06:09 AM|LINK
Based on my understanding, you can create a webservice on system 2 and if the image on the system 1 was being changed, then you can call that webservice to inform System 2. or you could use WCF dual binding (e.g: WSDualHttpBinding) which allows service to communicate with client.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
vividpath
Member
1 Points
6 Posts
Re: webservices and communication
Apr 26, 2012 08:53 AM|LINK
Thank you Peter for introducing me to WCF. I will look into this now. Running a webservice on system 2 is not a solution for me.
In the meanwhile I thought the "windows task scheduler" as a solution. Is this a good solution too?
The client will then periodically poll the webserver for new information. Please do let me know your opinion on this.
Peter pi - M...
Star
12871 Points
1786 Posts
Re: webservices and communication
Apr 26, 2012 09:16 AM|LINK
You want to call web service on system 1 in the windows task schedule and then schedule this task to run at periodical time, this approach could also complete above goal.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
vividpath
Member
1 Points
6 Posts
Re: webservices and communication
Apr 26, 2012 10:40 AM|LINK
Thanks a lot Peter. Now I will see what best suits for the needs, WCF or Task scheduler and act accordingly.