473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

call function from .NET Windows Service

Hi all

Does anybode have a easy sample of the following:

I have a little .NET Windows Service with one public function
to return just a string.
Now I want to build a .NET WinForms application and call
this function from another pc.

What is the easyest way to do ??

Thanks a lot for any comments !

Best regards
Frank Uray
Dec 12 '07 #1
2 5498
Your service would need to expose a WCF or Remoting endpoint, and your client
app would need to connect to this and send / receive the method call request.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Frank Uray" wrote:
Hi all

Does anybode have a easy sample of the following:

I have a little .NET Windows Service with one public function
to return just a string.
Now I want to build a .NET WinForms application and call
this function from another pc.

What is the easyest way to do ??

Thanks a lot for any comments !

Best regards
Frank Uray
Dec 12 '07 #2
Hi Peter

Thanks for your answer.

Is there somewhere I sample how to do this ??

Thanks and best regards
Frank

"Peter Bromberg [C# MVP]" wrote:
Your service would need to expose a WCF or Remoting endpoint, and your client
app would need to connect to this and send / receive the method call request.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Frank Uray" wrote:
Hi all

Does anybode have a easy sample of the following:

I have a little .NET Windows Service with one public function
to return just a string.
Now I want to build a .NET WinForms application and call
this function from another pc.

What is the easyest way to do ??

Thanks a lot for any comments !

Best regards
Frank Uray
Dec 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: parthan | last post by:
We are running our c++ program as Windows services which uses JNI. > Program is getting CLASSPATH env variable correctly and also > initializes JVM successfully. After initializing JVM, programs...
2
by: Sylwia | last post by:
Hi! I need your help... I have the following problem. I've implemented the python Windows Service which behaves like a log supervisor. If the space used by log files is bigger than a given...
0
by: Nazgul | last post by:
Hi! Sorry if I posted it twice... I need your help... I have the following problem. I've implemented the python Windows Service which behaves like a log supervisor. If the space used by log...
3
by: DH | last post by:
I hope this is a right place to post my question I'm working on a Windows service application with VB.net. The purpose is to let the service application as a monitor to periodically check a...
3
by: john | last post by:
Is there a way in .Net to call a function or web service under a different security context as the one that the user is logged into? For example, if a user calls web service 1 (WS1), WS1 is now...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
6
by: Siegfried Heintze | last post by:
I have the following C# code in my web service: public static extern double add_(double X, double Y ); public double add (double X, double Y){ return add_(X, Y); }
0
by: Griff | last post by:
Overview When the first call to our Web Service causes an exception, the Web Service caches that user's credentials for its life time. Details We have a Web Service which uses Windows...
0
by: epoch | last post by:
hi. my problem is: there is a web service running on the network. i wrote a windows service in delphi. i want to call a dll or com+ from this windows service. and this windows service is going...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.