Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

i am trying to write a simple ASP.NET Webpage, that get its data (list of objects)
from a local running C# WPF program. Therefore i created a WCF Service in my ASP.NET
project. The call of my service methods from my local program works fine. My question now is, how can i update the webpage when calling the service methods, how can i access my webpage from the webservice? Is this possible at all?

Kind Regards
Manu
Posted
Comments
ZurdoDev 17-Jul-12 16:09pm    
An easy way to do it is to use jQuery. See http://api.jquery.com/jQuery.ajax/. You call a webservice and can get back your objects as json data.

1 solution

 
Share this answer
 
Comments
m.bleimuth 18-Jul-12 6:04am    
i think thats the wrong direction, what i want is, call a webservice method, for example SetWebData(object data), after calling that method the webclients should update their content with the data object. I do not want to store the data in any kind of database or something like this. After reading your links and do a lot of googeling i think that its not possible the way i want to do it?
db7uk 18-Jul-12 7:49am    
So you want a service that performs something like an event aggregator or mediator?
m.bleimuth 18-Jul-12 8:02am    
Exactly, the Service should only push the data to the web page to Display it there.
db7uk 19-Jul-12 4:14am    
Well with signalR and jQuery you can do that. You may also want to look at a duplex service that users subscribe to and then get notified when something happens. You can do this with JQuery but if it were Silverlight you would have a better time with it.
db7uk 19-Jul-12 4:15am    
http://social.msdn.microsoft.com/Forums/en-US/netfx64bit/thread/9a9a7d1d-d818-4b53-9e6b-6527051359a6/

http://www.codeproject.com/Articles/27107/Scalable-COMET-Combined-with-ASP-NET

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900