By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,078 Members | 2,159 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,078 IT Pros & Developers. It's quick & easy.

Webservice - start, stop and "uptime"

P: n/a
MA
Hi all!

I know there is other newsgroups for webservices, but I donīt get any
answers on those.

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre
Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a

"MA" <ne**@supremelink.se> wrote in message news:2r*************@uni-berlin.de...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any answers on those.

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre


A webservice is not like a windows-service. It is not an independant
process that can be stopped or started.

A webservice is part of a web application. As long as the application
is available, the webservice is alo available. "Uptime" for the webservice
is then equal to the uptime of the web-application.
If you want to stop access to that webservice (with the web application
still running), you could use an Application object, that is written to
by some "webservice control page", and read by that webservice:
if that object says "blocked" then the webservice should give an errormessage
else continue as usual.

Hans Kesting

Nov 16 '05 #2

P: n/a
MA

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"MA" <ne**@supremelink.se> wrote in message
news:2r*************@uni-berlin.de...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any
answers on those.

I have developed a webservice that writeing and reading files in
different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre


A webservice is not like a windows-service. It is not an independant
process that can be stopped or started.

A webservice is part of a web application. As long as the application
is available, the webservice is alo available. "Uptime" for the webservice
is then equal to the uptime of the web-application.
If you want to stop access to that webservice (with the web application
still running), you could use an Application object, that is written to
by some "webservice control page", and read by that webservice:
if that object says "blocked" then the webservice should give an
errormessage
else continue as usual.

Hans Kesting

So, if I have my service on a webserver, it will be available as long as the
server is available?

/Marre
Nov 16 '05 #3

P: n/a

"MA" <ne**@supremelink.se> wrote in message news:2r*************@uni-berlin.de...

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...

"MA" <ne**@supremelink.se> wrote in message news:2r*************@uni-berlin.de...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any answers on those.

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre


A webservice is not like a windows-service. It is not an independant
process that can be stopped or started.

A webservice is part of a web application. As long as the application
is available, the webservice is alo available. "Uptime" for the webservice
is then equal to the uptime of the web-application.
If you want to stop access to that webservice (with the web application
still running), you could use an Application object, that is written to
by some "webservice control page", and read by that webservice:
if that object says "blocked" then the webservice should give an errormessage
else continue as usual.

Hans Kesting

So, if I have my service on a webserver, it will be available as long as the server is available?

/Marre


True
Nov 16 '05 #4

P: n/a
MA

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

"MA" <ne**@supremelink.se> wrote in message
news:2r*************@uni-berlin.de...

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

"MA" <ne**@supremelink.se> wrote in message
news:2r*************@uni-berlin.de...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any
answers on those.

I have developed a webservice that writeing and reading files in
different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre

A webservice is not like a windows-service. It is not an independant
process that can be stopped or started.

A webservice is part of a web application. As long as the application
is available, the webservice is alo available. "Uptime" for the
webservice
is then equal to the uptime of the web-application.
If you want to stop access to that webservice (with the web application
still running), you could use an Application object, that is written to
by some "webservice control page", and read by that webservice:
if that object says "blocked" then the webservice should give an
errormessage
else continue as usual.

Hans Kesting

So, if I have my service on a webserver, it will be available as long as
the server is available?

/Marre


True

Ok.

Thanx for helping me out with these newbie questions :)

/Marre
Nov 16 '05 #5

P: n/a
MA,

In addition to what Hans said before, you could craft your own mechanism
to turn the web service on and off. Basically, in your web service method,
you would check some sort of static variable indicating whether or not the
method could be called. If it can, then you proceed normally. If it can't,
then you would throw an exception. This static variable would be able to be
modified by another web service method perhaps, which would turn it on and
off.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"MA" <ne**@supremelink.se> wrote in message
news:2r*************@uni-berlin.de...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any
answers on those.

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre

Nov 16 '05 #6

P: n/a
I believe you are talking about Windows service and not Web service.
"MA" <ne**@supremelink.se> wrote in message news:<2r*************@uni-berlin.de>...
Hi all!

I know there is other newsgroups for webservices, but I donīt get any
answers on those.

I have developed a webservice that writeing and reading files in different
folders.

Question 1: I need to be able to stop this service by using a web
interface
(using a stop button). But I canīt find any way to this. Any ideas?

Question 2: Where can I see if this service is running?

Question 3: Can I get the current "uptime" for the service?

/Marre

Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.