What is the difference between WCF's WebHttpServiceHostFactory
and WebServiceHostFactoryhosting
?
Asked
Active
Viewed 1,320 times
2

Michael Petrotta
- 59,888
- 27
- 145
- 179

emmanuel
- 23
- 3
-
In what namespace did you find the latter class (WebServiceHostFactoryHosting)? – larsw May 02 '11 at 18:19
-
1Are you wondering about the difference between WebServiceHost and WebServiceHostFactory? – larsw May 02 '11 at 18:20
-
Sorry, there as a typo in my question. Wanted to know the difference between WebHttpServiceHostFactory and WebServiceHostFactory. – emmanuel May 03 '11 at 16:00
-
@larsw - No, my question relates to the two different HostFactory's which have the corresponding ServiceHost's - WebHttpServiceHost and WebServiceHost – emmanuel May 03 '11 at 16:02
-
In the WCF Web API stack, they included WebHttpServiceHostFactory and I'm just trying to figure out what the difference are. – emmanuel May 03 '11 at 16:04
1 Answers
2
Assuming that you're talking about the HttpServiceHostFactory from the new WCF Web API - http://wcf.codeplex.com/SourceControl/changeset/view/44d95f912edf#WCFWebApi%2fHttp%2fSrc%2fMicrosoft.ApplicationServer.Http%2fmicrosoft%2fApplicationServer%2fHttp%2fActivation%2fHttpServiceHostFactory.cs - this factory sets up the service / endpoint using the new HTTP pipeline for WCF (which is on codeplex). The WebServiceHostFactory sets up a service / endpoint using the "traditional" WCF REST style API (i.e., the one which was released with .NET Framework 3.5 and improved in 4.0).

carlosfigueira
- 85,035
- 14
- 131
- 171
-
i see. So WebHttpServiceHost Factory when released will be a replacement of WebServiceHost Factory. Thanks. – emmanuel May 18 '11 at 16:51