.NET Web Services without ASP.NET/IIS?

后端 未结 5 951
小蘑菇
小蘑菇 2021-02-04 09:24

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

相关标签:
5条回答
  • 2021-02-04 10:03

    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

    0 讨论(0)
  • 2021-02-04 10:14

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

    0 讨论(0)
  • 2021-02-04 10:17

    Hosting and Consuming WCF Services

    This is an older article but still relevant.

    0 讨论(0)
  • 2021-02-04 10:17

    Yes use ServiceHost.

    0 讨论(0)
  • 2021-02-04 10:22

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

    0 讨论(0)
提交回复
热议问题