开发者

Do I need to create a WCF service to read from a XML file?

I need to read from a XML file, get some data from the file and return the data.

Do I need to crea开发者_高级运维te a WCF service for that?

If so, do i need to host the service? Im not too sure how exactly WCF works, (though Ive been through quite a few tutorials) What exactly do I need to implement? I guess the IService interface, the actual Service implementation, what about the client, do I need to worry about the client?

Thanks


No, you need an XMLReader

OLD example of a XMLReader

About WCF Services - just FYI


WCF developed not for working with XML. You can use LinqToXml for work with XML documents. It can be simpler then using XMLReader but, you'll have problems if you want to work with really BIG XML documents.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜