Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any possibilty to implement a couple of methods on a global server so that I could use them from any application in the network or from the web? These methods will get parameters and return results. I wish that these methods (or services..?) work like a windows service - run in the background as long as Windows is running, or they can be started manually when required. It is possible to make that kind of service visible in network?
How can I do that and what tools will I need to use?

Thank you!
Posted
Updated 20-Dec-10 23:58pm
v2

Well, you could also use WebService.
It will be easier to setup.
 
Share this answer
 
Yeah, you can set up a windows service that allows connections via TCP/IP sockets, WCF, or whatever. At that point, you can make the service do anything you want on the remote machine.

 
Share this answer
 
v2
Comments
Manfred Rudolf Bihy 21-Dec-10 11:36am    
Moved to comment of OP's behalf:
Hi, thx for your replies. I'm just learning but I don't want the easiest way. What is the best way to implement such a system. Web service or windows service?

This service (or method in this service) will send and receive big amount of data. I thought, maybe Windows Service, but how can I host them ?

Could you suggest me, an architecture for that kind of system (in C#)?

Thank you for helping me
It depends what you want to do with the service

You could expose functionality in a windows service and consume that from your clients using binary remoting over TCP. This is something we use on an older system, but it's been very successful & performance is excellent.

This would be fine for 'internal users on a LAN', but you wouldn't expose this to the internet

If you want your functionality to be consumed by any client, anywhere - then a web service is probably the way to go

This article is pretty good and compares the different approaches. (It's dated now - 2003 - but the concepts are still valid even if they've been superseded by WCF etc)

http://www.developer.com/net/net/article.php/2201701/NET-Remoting-Versus-Web-Services.htm[^]

I quite like this diagram at the end

http://www.developer.com/img/articles/2003/05/06/Thiru/Remote4.jpg[^]

Notice how both the internal and 'internet users' consume the same code, it's just it's exposed to internet users by wrapping in a web service
 
Share this answer
 
v2
Comments
mnd017 22-Dec-10 15:23pm    
So, if I want to expose those functions to the internet.. good way is to use WCF. In that case i should implement my methods in: WCF Service Library and then host the WCF Service Application, right? That would be all for serwer ?
Dylan Morley 23-Dec-10 3:53am    
Yes, that's certainly one way to do it.

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