dcw
dcw

Reputation: 3555

.NET Web Services without ASP.NET/IIS?

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)

Upvotes: 12

Views: 16057

Answers (5)

Mitch Wheat
Mitch Wheat

Reputation: 300489

If you use WCF (Windows Communication Foundation), which has pretty much superceded Web Services, you can host in a Windows Service or in IIS.

Upvotes: 4

rick schott
rick schott

Reputation: 20617

Hosting and Consuming WCF Services

This is an older article but still relevant.

Upvotes: 5

Daniel Brückner
Daniel Brückner

Reputation: 59635

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

Upvotes: 10

David
David

Reputation: 73554

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.

http://msdn.microsoft.com/en-us/library/ms731082.aspx

http://msdn.microsoft.com/en-us/netframework/aa663309.aspx

Upvotes: 5

sipsorcery
sipsorcery

Reputation: 30699

Yes use ServiceHost.

Upvotes: 4

Related Questions