Solved

Windows Service and Web Service

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rest webservice call over https via c# 6 38
Reset asp.net login password 4 42
How can my static class become undefined?? 8 49
Best resource to learn entity framework 2 33
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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