Main Site Documentation

Host webservice inside Windows Application


#1

Hi guys,

can anyone point me to some good reference/guide to host a webservice inside a windows application?

I have a windows application the pulls data from a Fez Cobra (and Fez Panda) and stores that data into a MS SQL database. I want to expose some of that data to another application and a website.

Thanks in advance


#2

You can write a custom host for a WCF service, and even “self host”, which is what I think you mean by “inside a windows application”. See http://msdn.microsoft.com/en-us/library/ms731758.aspx for a howto example.

What’s your reason for going this route? Why not just create a (IIS hosted) WCF service that serves up the Sql data? This makes it loosely coupled, and easier to modify in the long run.