Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows Service and Web Service

Posted on 2007-03-24
4
Medium Priority
?
201 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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 …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

670 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