Solved

How to comsume a WINDOWS SERVICE ?

Posted on 2003-11-05
4
222 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
Comment Utility
if it's a service running in background, you can communicate with it using remoting.
0
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 100 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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