如何自动运行Web服务 [英] How to run webservice automaticlly
本文介绍了如何自动运行Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在应用程序打开时自动发送邮件.所以我写了webservice.但是我不知道如何在我的应用程序中自动调用webservice.
I want to send mails automatically when the application is open.so i wrote webservice.But i dont know how to call webservice automatically in my application
推荐答案
您不能.这不是Web服务的功能.你写错了.这是一个网站,应用程序打开"是什么意思?如果要在人们登录时启动一个进程,但又要在两次页面请求之间保持同步,则需要WINDOWS服务.
You can''t. That''s not what web services do. you wrote the wrong thing. This is a web site, what do you mean by ''application open'' ? If you want to start a process when people log in, but have it keep going between page requests, a WINDOWS service is what you need.
如上所述,您需要Windows Service!
MSDN:有关Windows服务的详细信息: Windows服务应用程序简介 [ ^ ]
示例:发送自动电子邮件警报的简单Windows服务 [
As mentioned, you need Windows Service!
MSDN: Details about Windows Service: Introduction to Windows Service Applications[^]
Sample: Simple Windows Service which sends auto Email alerts[^]
Try!
这篇关于如何自动运行Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文