PDA

View Full Version : Hosting webservices in a windows service app



ignhenry
08-26-2009, 05:06 AM
Hi

I've been looking for a way to host a web service in a windows service application. There've been some conversations going around related to this considering options like using HttpListener, or Cassini, or WCF with WSE 2.0, etc.

My questions. Does spring provide an out-of-the-box way to exposing PONOs as webservices from a windows service application using plain .NET framework 2.0? Or should I just straight look into WCF?

Thanks - Henry

chrisjsmith
08-30-2009, 10:58 PM
Check out this for hosting WCF: http://msdn.microsoft.com/en-us/library/ms733069.aspx

Personally, I'd just host WCF on IIS. It has superior scalability, logging and diagnostic support compared to the .Net native WCF host.

Windows services are complete bastards to work with long term.

keveenjones
04-01-2010, 06:56 AM
You can host WCF service outside of Internet Information Services (IIS) and this option is available in all versions of Windows and in detail process you can prefer msdn microsoft officially website.