|
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
|
|
|
|
|
akkram wrote: Then I assume that you don't know the answer either and wonder why you even bothered to answer my post.
No necessarily true: Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
What the others were trying to to was to teach you that small problems like this are easily testable in a small application. You can then work out the answer from there much faster than posting on a forum and awaiting a response.
akkram wrote: In the mean time ill continue googling for the answer
And if you try it for yourself you'll have the answer. If you don't have access to visual studio right now then I don't see what advantage you have in knowing the answer right now.
|
|
|
|
|
Colin Angus Mackay wrote: And if you try it for yourself you'll have the answer. If you don't have access to visual studio right now then I don't see what advantage you have in knowing the answer right now.
So what you are saying is that there is never an advantage/use to know anything about anything unless when you need to apply that knowledge in practice?
|
|
|
|
|
akkram wrote: So what you are saying is that there is never an advantage/use to know anything about anything unless when you need to apply that knowledge in practice?
No, I'm saying that the urgency in which you seem to be attempting to gain this current piece of information isn't immediately necessary.
|
|
|
|
|
No, what they're all saying is that if you don't have the skillset to wip up a small test app and test whether this is possible or not and do the research yourself, your career as a developer is over before it even begins.
Being able to do your own research, learn new technologies, testing your hypothesis, ..., are essential skills to surviving in the world of software development.
|
|
|
|
|
akkram wrote: Then I assume that you don't know the answer either and wonder why you even bothered to answer my post.
That doesn't necessarily follow. If you spend sometime round the boards, you will find that people often post questions before they have tried to find the answer for themselves. Something like this is so simple to prove that it is reasonable to assume that you will have to try it for yourself. The forums aren't here for us to do your work for you, or to do your thinking either.
The advice to try it for yourself is good advice. It gets you into the habit of trying things and only coming back once you've run out of things to try or got stuck.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
If, as you admit, you haven't tried to find the answer out for yourself, I'm not sure why you should expect others to give up their time to solve the problem for you.
Paul
|
|
|
|