Partager via


How WebServiceHost Works

WebServiceHost is a new feature in Orcas that makes it easy to put up simple web services that are built on HTTP and POX. However, there's no requirement that forces you to build REST and POX services using WebServiceHost. WebServiceHost exists to make a simple case easy, but you're not locked into using that approach if the simple case doesn't apply to you.

Here's everything behind WebServiceHost if you want to build your own.

- WebServiceHostFactory exists to bootstrap WebServiceHost when building a web site in IIS

WebServiceHost disables any service metadata or help pages so that they don't steal any part of the URI space under your web site  
  • WebServiceHost generates endpoints for all of your contract types with a WebHttpBinding so that you don't have to describe the service endpoints in a configuration file
  • WebServiceHost adds a WebHttpBehavior to all of your service endpoints so that Get and Invoke operations in your service contract work without any additional setup

Next time: Security Session Inactivity

Comments

  • Anonymous
    June 23, 2008
    Whenever my service receives a message the service operation fails because the user identity is not mapped