Yes
well the name Autenticacao.login in id component must to be reference
with Service name=Autenticacao and endpoit name=login and in your WCF
App
must to be a folder Autenticacao and a file login.svc and inside this
file <%@ ServiceHost Language="C#" Debug="true"
Service="Autenticacao.login"
Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
Castle.Facilities.WcfIntegration" %>
see Web.Config
<service name="Autenticacao">
<clear />
<endpoint address="" name="login" binding="basicHttpBinding"
contract="PR.Servico.Contrato.Autenticacao.ILogin">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
On 10 ago, 19:26, cws <[email protected]> wrote:
> Hello!
>
> Does anything in your web.config services sections need to match, like
> the name attributes etc?
>
> On Aug 10, 3:46 pm, Gabriel Mancini de Campos
>
>
>
> <[email protected]> wrote:
> > i have some like this:
>
> > web.config
>
> > <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
> > <services>
>
> > <service name="Autenticacao">
> > <clear />
> > <endpoint address="" name="login" binding="basicHttpBinding"
> > contract="PR.Servico.Contrato.Autenticacao.ILogin">
> > <identity>
> > <dns value="localhost" />
> > </identity>
> > </endpoint>
> > <endpoint address="mex" binding="mexHttpBinding"
> > contract="IMetadataExchange" />
> > </service>
>
> > global.asax
>
> > [LoaderOptimization(LoaderOptimization.MultiDomainHost)]
> > protected void Application_Start(object sender, EventArgs e)
> > {
>
> > try
> > {
> > XmlConfigurator.Configure(); // Start Lo4Net
>
> > Container = new WindsorContainer()
> > .Install(Configuration.FromXmlFile("Config/
> > Facilities.config"))
> > .Install(Configuration.FromXmlFile("Config/
> > Repositories.config"))
> > .Install(Configuration.FromXmlFile("Config/
> > Services.config"));
> > ActiveRecordStarter.UpdateSchema();
> > }
> > catch (Exception)
> > {
>
> > throw;
> > }
> > }
>
> > login.svc
>
> > <%@ ServiceHost Language="C#" Debug="true"
> > Service="Autenticacao.login"
> > Factory="Castle.Facilities.WcfIntegration.DefaultServiceHostFactory,
> > Castle.Facilities.WcfIntegration" %>
>
> > facilities.config
>
> > <facilities>
>
> > <facility
> > id="wcf"
> > type="Castle.Facilities.WcfIntegration.WcfFacility,
> > Castle.Facilities.WcfIntegration" />
>
> > services.config
>
> > <component id="Autenticacao.login"
> >
> > service="PR.Servico.Contrato.Autenticacao.ILogin,
> > PR.Servico.Contrato"
> >
> > type="PR.Servico.Impl.Autenticacao.LoginServico,
> > PR.Servico.Impl"
> > lifestyle="transient">
>
> > </component>
>
> > On 10 ago, 05:18, cws <[email protected]> wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---