.NET Web Services without ASP.NET/IIS?

By : dcw
Source: Stackoverflow.com

I'm implementing a server component that needs to expose a web-service interface, but there is no application need for it to run with ASP.NET on IIS. Is there a straightforward way to implement Web Services in .NET without ASP.NET/IIS? (I'm using .NET 3.5 / C# 3.0)

By : dcw

You can use the ServiceHost class to host a service. The WCF tutorial contains sample code.

Hosting and Consuming WCF Services

This is an older article but still relevant.

As long as you're using a verson of .Net that supports it, you should be looking at the Windows Communication Foundation (WCF). You'll need SOME process to host these services, so if you don't use IIS, you may end up writing your own EXE to host the service, but that's where you should start.



By : David

This video can help you solving your question :)
By: admin