Chatting using WebService as the central Server
-
Hi, I am developing a chatting application with a Web Service as the central monitoring Server. The Web Service methods will be used by the clients (Windows and Web) to Add User, Send and Recieve messages. Can anyone help me in realizing this functionality as I have less knowledge on Web Service? A sample code with this regard will also be helpful
Thanks in advance, Murali
-
Hi, I am developing a chatting application with a Web Service as the central monitoring Server. The Web Service methods will be used by the clients (Windows and Web) to Add User, Send and Recieve messages. Can anyone help me in realizing this functionality as I have less knowledge on Web Service? A sample code with this regard will also be helpful
Thanks in advance, Murali
Ur Server code will have all the functionality of Add User, Send and Recieve messages. Then add a webservice to this server project. In the webservice add distinct WebMethods for each of ur task. Create a instance of the server inside this method and make an appropiate call. ex. server.cs- class server { AddUser(){} } in webservice.asmx class service { [webmethod] AddUserService() { server sr = new server(); sr.AddUser(); } } This example is just to help u to start. Once u start u can know how to invoke methods.
-
Ur Server code will have all the functionality of Add User, Send and Recieve messages. Then add a webservice to this server project. In the webservice add distinct WebMethods for each of ur task. Create a instance of the server inside this method and make an appropiate call. ex. server.cs- class server { AddUser(){} } in webservice.asmx class service { [webmethod] AddUserService() { server sr = new server(); sr.AddUser(); } } This example is just to help u to start. Once u start u can know how to invoke methods.