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
Solved

Windows Service and Web Service

Posted on 2007-03-24
4
196 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 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