Hi Guys,
I'd been literally pulling my hair on this for past few days. I'm
trying to use Castle Core/Windsor(2.5.1.0) to integrate with WCF. The
reason I'm trying to use Castle 2.5.1.0 is that it works well with
NHibernate integration facility (version 1.1.0.1) and I was to add it
up with WCF. But I'm sure I miss something in there.
Environment
IIS on Windows XP
The versions I'm trying to use
1. Castle Core 2.5.1.0
2. Castle Windsor 2.5.0.1
3. Castle.Facilities.WcfIntegration 3.0.0.0 (I may be wrong in using
it)
4.
.svc file
-----------
<%@ ServiceHost
Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
Castle.Facilities.WcfIntegration"
Service="CalculatorService" %>
Global.asax
-------------------
Application_Start
Container = New WindsorContainer(New XmlInterpreter("windsor.config"))
Windsor.config
--------------------
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<facilities>
<facility id="WcfFacility"
type="Castle.Facilities.WcfIntegration.WcfFacility,Castle.Facilities.WcfIntegration">
</facility>
</facilities>
<components>
<component id="CalculatorService"
service="TESTService.Calculator.ICalculatorService,TESTService.Calculator"
type="TESTService.Calculator.Impl.CalculatorService,TESTService.Calculator"
lifestyle="transient">
</component>
<!-- go registering other components as above-->
</components>
</configuration>
Please let me know if I'm missing something here. Basically it all
boils down to how to use Castle 2.5.1.0 and integrate with WCF on IIS.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.