It's impossible to answer this question without knowing how your security works.
Why do you want to use this approach if you already wrote the code to perform this task? Why not simply execute the code in an exe rather than a web application? You could place the exe on the web server and simply schedule a windows task. Very simple
and secure.
You might need to refactor the code into a library if you want to share the code between the exe and web application.
Thanks for your pointers , this is a third party application we are maintaining, as pointed by you they provided us with a Service and Task but somehow the task wouldn't connect to the website , we are troubleshooting this with the Vendor.
I am looking if there are any easy options to achieve the same .
As suggested by you in previous post we can look into Load Test options (like Selenium ,Jmeter) ,thanks again for all your inputs.
Member
62 Points
113 Posts
Login to website from batch exe
Aug 27, 2019 05:04 PM|KALYANA ALLAM|LINK
Hi,
In our website mails would be triggered when login to website and append a string to url
Example if our website is yourapp.aspx we need to login and append schedulereports yourapp.aspx/schedulereports .
We want a batch program (exe,Windows Application ) to do the functionality, so that we can schedule it to run hourly .
We like to pass CompanyCode,UserId and Password as parameters .
Could you please guide me on this .
Thanks,
Kalyan
All-Star
53641 Points
23999 Posts
Re: Login to website from batch exe
Aug 27, 2019 06:37 PM|mgebhard|LINK
It's impossible to answer this question without knowing how your security works.
Why do you want to use this approach if you already wrote the code to perform this task? Why not simply execute the code in an exe rather than a web application? You could place the exe on the web server and simply schedule a windows task. Very simple and secure.
You might need to refactor the code into a library if you want to share the code between the exe and web application.
Member
62 Points
113 Posts
Re: Login to website from batch exe
Aug 28, 2019 06:43 AM|KALYANA ALLAM|LINK
Hi Mgebhard,
Thanks for your pointers , this is a third party application we are maintaining, as pointed by you they provided us with a Service and Task but somehow the task wouldn't connect to the website , we are troubleshooting this with the Vendor.
I am looking if there are any easy options to achieve the same .
As suggested by you in previous post we can look into Load Test options (like Selenium ,Jmeter) ,thanks again for all your inputs.
Thanks,
Kalyan