Windows服务与xml文件 [英] Windows services with xml file
问题描述
我对如何在应用程序中使用Windows服务一无所知,并举了一个如何创建Windows服务的示例.
这是我的任务,就像一个Windows服务一样,它从xml文件路径中获取oreder id,并将其存储在数据库ex:sqlserver中.
1)包含订单的xml文件
< order>
< orderid> 1
<订单名称>相机
-----
2)数据库:
orderid int
订单名称varchar
基于orderid的xml文件必须使用Windows服务保存在数据库中.
请按照上述数据举一个例子.
谢谢&Ragards,
Raghu.
Hi,
I have no idea on how to use windows services in applications and give me one example how to create a windows service.
here, is my task like one windows service take the oreder id from xml file path and that stores in database ex:sqlserver.
1)xml file that contains orders
<order>
<orderid> 1
<ordername> camera
-----
2)Database:
orderid int
ordername varchar
based on orderid the xml file has to save in database by using windows service.
please give me example with following the above data.
Thanks&Ragards,
Raghu.
推荐答案
示例:
发送自动电子邮件警报的简单Windows服务 [ Windows服务应用程序简介 [简单Windows服务示例 [您的第一个C#Web服务 [ Windows Services in Action I [
Sample:
Simple Windows Service which sends auto Email alerts[^]
MSDN: Details about Windows Service:
Introduction to Windows Service Applications[^]
For more details, look here:
Simple Windows Service Sample[^]
Your first C# Web Service[^]
Windows Services in Action I[^]
这篇关于Windows服务与xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!