[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to comsume a WINDOWS SERVICE ?

Posted on 2003-11-05
4
Medium Priority
?
270 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
2 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 400 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 400 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Screencast - Getting to Know the Pipeline
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 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