My problem is that it seems to ignore the endpoint defined in
web.config.

On Aug 9, 11:09 pm, cws <[email protected]> wrote:
> Thanks for answering!
> Sorry i forgot that.
>
> I am using this for setup
>
> ServiceDebugBehavior returnFaults = new ServiceDebugBehavior();
>             returnFaults.IncludeExceptionDetailInFaults = true;
>             returnFaults.HttpHelpPageEnabled = true;
>
>             ServiceMetadataBehavior metadata = new
> ServiceMetadataBehavior();
>             metadata.HttpGetEnabled = true;
>
>             IoC instance = IoC.Instance;
>
>             instance.Container
>                 .AddFacility<WcfFacility>()
>                 .Install(Configuration.FromXmlFile("Windsor.config"))
>                 .Register(
>                 Component.For<IServiceBehavior>().Instance
> (returnFaults),
>                 Component.For<ServiceMetadataBehavior>().DependsOn(new
> {HttpGetEnabled = true})
>                 );
>
> On Aug 9, 5:04 pm, Krzysztof Koźmic <[email protected]>
> wrote:
>
> > IWindsorContainer container = new WindsorContainer()
> >                     .Install(Configuration.FromXml(new
> > FileResource("Windsor.xml")));
>
> > cws wrote:
> > > Hello!
>
> > > Uisng Castle release 2.x.x from repository
>
> > > When using WCFFacility i am trying to define a endpoint in web.config,
> > > but the facility seems not to pick it up. Or maybe i don't understand
> > > it. trying to define a namespace in the binding as seen below.
>
> > > Thanks for any help in advance!
>
> > > web.config:
> > >   <system.serviceModel>
> > >     <services>
> > >       <service  name="Skolplatsen.Services.FranvaroService" >
> > >         <endpoint binding="basicHttpBinding" bindingNamespace="http://
> > > services.skolplatsen.se/FranvaroService"
>
> > > contract="Skolplatsen.Services.Model.Contracts.IFranvaroService,
> > > Skolplatsen.Services.Model" />
> > >       </service>
> > >     </services>
> > >   </system.serviceModel>
>
> > > Windsor.xml:
> > >     <component id="franvaroService"
> > >                               
> > > service="Skolplatsen.Services.Model.Contracts.IFranvaroService,
> > > Skolplatsen.Services.Model"
>
> > > type="Skolplatsen.Services.Model.Implementations.FranvaroService,
> > > Skolplatsen.Services.Model"
> > >            lifestyle="transient"
>
> > > Svc-file
> > > <%@ ServiceHost Language="C#" Service="franvaroService"
> > > Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
> > > Castle.Facilities.WcfIntegration" %>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to