473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Webservice - start, stop and "uptime"

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
6 4296

"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
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

"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: NurAzije | last post by:
I have written a code and can't figure what is wrong, the code will read a content of a file and cut all the emails from it,then echo them, but I have a problem with '"' charecter I think.. Take a...
145
by: Sidney Cadot | last post by:
Hi all, In a discussion with Tak-Shing Chan the question came up whether the as-if rule can cover I/O functions. Basically, he maintains it can, and I think it doesn't. Consider two...
0
by: victor | last post by:
My hosting company recently upgrade to window 2003 server. The reasearch i have done so far is that 2003 server will use IIS6.0. It is totally different from 2000 server and IIS 5.0 I have...
3
by: James Hunter Ross | last post by:
Friends, we are using ADPlus (CDB) to log w3wp.exe things are part of our debugging efforts. A log file gets filled with TONS of "1st chance AccessViolation" exceptions. Is this to be expected? ...
2
by: Peschtra | last post by:
Hello -- Perhaps this is a silly question, but is the word "change" a php or MySql command? I had a script that wouldn't work with the a field called "change" in it, but when I removed that...
8
by: =?ISO-8859-1?Q?Fran=E7oise_Debat?= | last post by:
Hello everybody, I have this problem reading the contents of a directory. here is my code: $my_dir = dir('data/templates'); asort($my_dir); while (false !== ($entry = $my_dir->read())) {
18
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the...
53
by: Sanders Kaufman | last post by:
I'm having a BLAST writing this app as OOP as PHP allows. It's one thing to discuss the dance, but it's a thing of beauty to see the performance. I'm noticing that the constructor is a "reset"...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.