Currently, we use programming registration of WCF proxies in Windsor container using WCF Integration Facility. For example:
container.Register(
Component.For<CalculatorSoap>()
.Named("calculatorSoap")
.LifeStyle.Transient
.ActAs(new DefaultClientModel
{
Endpoint = WcfEndpoint.FromConfiguration("CalculatorSoap").LogMessages()
}
)
);
Is there any way to do the same via Windsor XML configuration file. I can’t find any sample of this on google.
Thanks in advance
Castle WCF Integration Facility repository (http://github.com/castleproject/Castle.Facilities.Wcf) now contains sample of WCF client registration from Windsor configuration file:
That is what I was looking for.
Thank you for your help.
Note: pay attention on lifestyle. In common case, WCF proxy must have transient lifestyle to be closed on object release. While default Windsor lifestyle is singleton, in this case WCF proxy will be closed on container disposal.
Regards, Andrej