I'm investigating in using Microsoft's WCF WebHttp Services for creating a RESTful API. In the past there has been the WCF REST Starter Kit for .NET 3.5, which now seem to have been replaced by the WCF REST Service Template 40 in .NET 4.
Of course I want to use Spring.NET's DI, but I can't seem to find any ressources on the web explaining how to successfully integrate Spring.NET into WCF WebHttp Services.
I do know the quite "interesting" way to get Spring into my conventional WCF Services, but does anyone know how to integrate Spring.NET with WCF WebHttp Services?
Some details, to whose are interested:
- In
WCF WebHttp ServicesI have aglobal.asaxjust like in MVC, where I can register routes and stuff. - This
Globalinherits fromHttpApplicationlike the good ol'SpringMvcApplicationdoes. A route looks a bit different though:
RouteTable.Routes.Add(new ServiceRoute("MyService", new WebServiceHostFactory(), typeof(MyService)));
I would assume two possible ways for hooking Spring into that:
- Let
Globalinherit from some Spring class instead ofHttpApplication - When registering the route, use a custom
ServiceHostFactoryprovided bySpring.NET
Does anyone know a ressource or some additional documentation on achieving this? Has anyone done this already?