Solved

How to comsume a WINDOWS SERVICE ?

Posted on 2003-11-05
4
241 Views
Last Modified: 2012-05-04
Hi,

Good day. I have written a function "Mul" which takes two parameters and returns a value in a WINDOWS SERVICE (Server). The function look like this :

public int Mul(int X, int Y)
{
return (X * Y);
}

Now i want to call this function in a windows application (Client)  in the click event of the button and get the result into a textbox. Can you please help me how to call the function with parameters WHICH IS IN WINDOWS SERVICE ?

Advance ThanX for your time & patience.

Cheers,
Kishore

0
Comment
Question by:rasi_014
4 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 100 total points
ID: 9687896
if it's a service running in background, you can communicate with it using remoting.
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 100 total points
ID: 9688807
Do not mix Windows Services and Web Services.

Windows services are APPLICATIONs that can run without having a user logged in.

Web Services are COMPONENTS that are somewhere on the Net (or on your intranet) that can be accessed using HTTP to do some process and return something.

What you wrote is a Web Service. Even if it is not to be used via the Net.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now