How to let a C# windows application give commands to an ASP .net 2 web application to fire a certain action
for example : give command from the windows application to the web site to pop up a window with some text come from the windows application.
Another example the msn messenger and the msn web messenger, how do they interact with each other
please i don't want to go through a database, the time factor is so important i need to make editing on the windows application, at no time that change should be done on the web site.
in windows applications it is simple to let many windows applications talk together through sockets but what is the bridge between the windows application and the web application
what about using web services can it help ? if yes please tell me how !
and what will be done at the windows application side and the web application side
Thanks for any help
Loading
roy royPosted Apr 25, 2007, 12:34 PM
I'm not so sure where the change occurs.
1. Is the Win app receives data from the web pages?
2. Does the Win app sends commands to the web application, so that next time the user navigates to a particular web page, the data sent, will affect the page that he sees?
If you need case # 1: you have 2 options:
1. Send your data to the web application thorugh HTTP(with the parameters sent as GET or POST). Then, all that your web page is needed to do it to read the parameters and do something with it. Basically, you Windows application acts a "browser"(without neccessarily showing the html the web page returs).
2. Send you data through web service. For that, you will need to create web service on your web site, then, create web service client on your Windows application.
If you need case #2, you do need to store the data somewhere on the web server(file / db, etc...), so that the next time the user brows to the web page, the page wíll be based on the information posted earlier. To do that, again, use write and use web service or simple http request.
It won't neccessarily need to be so slow, as you concerned.
Hope it helps
Good luck
Roy