Solved

How to comsume a WINDOWS SERVICE ?

Posted on 2003-11-05
4
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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