Solved

Windows Service and Web Service

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cs.Designer Issue 2 18
Calling stored proc in EDMX 11 19
fomat Json objects 6 18
XML & .net 5 19
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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now