Solved

Windows Service and Web Service

Posted on 2007-03-24
4
200 Views
Last Modified: 2012-05-05
I am looking for information on the following:

I need to execute a function inside a windows service from a web application.

CAN I DO THE FOLLOWING:

Include a WEB service inside the windows service.  Then register this WEB service within my web application.

Say my WEB Service had a function called public void AddItem(). I could then call this method, and using the web service I could action the desired event inside my windows service.

Basically is this a way round REMOTING.

Thanks

Andrew



0
Comment
Question by:REA_ANDREW
[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
  • 2
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
ID: 18785335
what are u trying to achieve

for this to work

this windows service would lie in the server where u host ur site..or some machine the server has access to..

1)Include a WEB service inside the windows service

i dont think so..
0
 
LVL 20

Author Comment

by:REA_ANDREW
ID: 18785367
So are you saying that a Web Service which is part of a windows service cannot be accessed form the web.

I.e. as normal, register the web service and consume it.  

Web Application Calls MethodA() of  Web Service -> Web Service Calls MethodB() of Windows Service
0
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 18785382
Web Application Calls MethodA() of  Web Service -> Web Service Calls MethodB() of Windows Service

Ok

this is possible i was a bit confused with the post

but what is the need to go abt this away

whatever it is cant u include it in the web service itself
0
 
LVL 20

Author Comment

by:REA_ANDREW
ID: 18785599
The windows Service will be running 24/7.  It has a number of processes to complete at mulitple times a day. So basically does work for the user when the user goes off line.

The web service is to interact with the windows service.  I needed it so that say the web user goes off line.

In the morning they go online and wish to synchronize their software with all the work the windows service has accumulated in the time they have been off line.

I have to do this from the web, it is not within an application client side.

But now I have confirmation on this, Cheers. I was just a bit weary of which method to choose.

Thanks very much for your time on this, I appreciate it.

Andrew :-)
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

615 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