Host webservice inside Windows Application

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

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 [url]Microsoft Learn: Build skills that open doors in your career 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.