|
Web services don't start. They are pieces of code that are called from other processes (because they are implemented as DLLs). In order to accomplish this, you are going to need to write an application that calls this service and schedule it using the job scheduler.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I wrote in my post that I have a solution for this issue and it seems that i wasn't far off. My mistake on the "start" word. Thank you for the reply.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
Wrap the webservice calls in an exe and use the Windows Scheduler to invoke the exe at the required time.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Wrap the webservice calls in an exe and use the Windows Scheduler to invoke the exe at the required time.
????
|
|
|
|
|
What's confusing you?
only two letters away from being an asset
|
|
|
|
|
Scheduling a WebService
I suppose I don't know anything but that seems contradictory to anything remotely resembling "Best Practice". And wrapping it and using the windows scheduler just seems like more of the same.
|
|
|
|
|
Didn't say anything about scheduling a webservice.
Wrap the webservice calls in an exe and use the Windows Scheduler to invoke the exe at the required time.
How would you propose to do it?
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: How would you propose to do it?
Well certainly this could be misleading but the OP states it's "his" WebService:
Albu Marius wrote: how can I programatically start a web service at a given hour
Albu Marius wrote: I have a web service that has to start every day at a given time
Therefore he should have the code for "what" it actually does and then it seems the appropriate thing to do would be to build a Windows Service using that code. A WebService does not seem to apply at all in this situation. Again this is all based on what could be completely misleading statements by the OP.
|
|
|
|
|
If this is something that doesn't really return any kind of values, why is it even written as a web service?? What does this thing do??
|
|
|
|
|
Sorry for the late answer. It is my service and it doesn't return any values but does have to send some emails to certain people containing data at a given time of night. It has to do these operations when the server is not too busy. Now I implemented a System.Timers.Timer so that I can start the processing methods at 1 o'clock in the morning. In this case the service timer runs all day and calls the methods that process and send data. If someone can give me a better idea please try.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
If you are running SQL Server, then I would suggest that you create a task that sends the emails and use the SQL Server agent to manage this for you.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for the advice but the task is far too complex for SQL Server because the emails have to be sent to a list of addresses that changes very often, the content of the emails is not the same and the scheduling for sending can be daily, monthly, yearly for each address. I decided to use timers and threads to accomplish this and also I have switched to a windows service instead of a web service.
I am fighting against the Universe...
Reference-Rick Cook
|
|
|
|
|
Albu Marius wrote: the task is far too complex for SQL Server because the emails have to be sent to a list of addresses that changes very often, the content of the emails is not the same and the scheduling for sending can be daily, monthly, yearly for each address
So store the addresses and frequency in a table. Really - it's not too complex for SQL Server - after all, you are working with data here. Don't try to overcomplicate things - step back a second and take another look at the architecture.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hello...
I get from a hardware driver data in double array.
double[,]
for example double[2,5]
if I use Length, then it shows 10, because 2x5 is 10.
How can I get "2" and how can I get "5" if I only know "10" ?
Thanks...
|
|
|
|
|
use arr.GetLength(dimension) method, where arr is an array.
(new double[2,4]).GetLength(0) will give you 2 and (new double[2,4]).GetLength(1) will give 4
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
|
Hi All,
I have one WebForm(.aspx) I m using this page for showing the reports. In that page there are two(2) DataGrid and 5 Labels.All Data is coming dynamically.There is one Button.
On click of that Button, I m sending mail of this Webform into PDF format . Now i dnt know how to convert my aspx Webform to PDF. Is there any inbuilt class into .net 1.1???? Plz give me detail coding.
Plz help me. I m searching this thing from many days.
Thank you................
vinita
|
|
|
|
|
Check this
ABCpdf[^]
Sharp Pdf[^]
vhs17 wrote: I m searching this thing from many days.
You could have tried Google[^]
*jaans
|
|
|
|
|
Hi. Is it possible to read data with the sqlcommand even though the database connection is closed? like:
connection.Close();
int returnval = (int)Commandobj.Parameter[something].value;
|
|
|
|
|
akkram wrote: Hi. Is it possible to read data with the sqlcommand even though the database connection is closed?
Why don't you try it and find out? It's the best way to learn.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
I would if i could, but at the moment im at work and have no way of testing it.
|
|
|
|
|
When you get time, I suggest you try it out for yourself.
Paul
|
|
|
|
|
5ed for keeping your cool.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Then I assume that you don't know the answer either and wonder why you even bothered to answer my post. In the mean time ill continue googling for the answer /Thx
|
|
|
|