Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9237077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:27:10+00:00 2026-06-18T07:27:10+00:00

We are using WCFFacility to setup services from hosted (IIS 7.5) environment. What we

  • 0

We are using WCFFacility to setup services from hosted (IIS 7.5) environment.
What we need is to provide two endpoints for each service, WSHttp for .NET clients and WebHttp for everyone else. Is this possible?

The code we use:

_container.Register(
    Component
        .For<ISomeService>()
        .ImplementedBy<SomeService>()
        .AsWcfService(new DefaultServiceModel()
        .Hosted()
        .PublishMetadata(mex => mex.EnableHttpGet())
        .AddEndpoints(
            WcfEndpoint.BoundTo(new WSHttpBinding()).At("v1/ws"),
            WcfEndpoint.BoundTo(new WebHttpBinding()).At("v1/rest")
        ))
    );

And then:

RouteTable.Routes.Add(new ServiceRoute("", new DefaultServiceHostFactory(_container.Kernel), typeof(ISomeService)));

I assume we can’t really mix ws/web endpoints but can this be achieved somehow else? We don’t want to fallback to xml configuration but we need to configure endpoints.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:27:11+00:00Added an answer on June 18, 2026 at 7:27 am

    After the whole day of digging and trying I’ve found the solution it seems. Not tested in any way apart from finally getting help/wsdl pages. So I leave the question open for a while.

    _container.Register(
        Component
        .For<ISomeService>()
        .ImplementedBy<SomeService>()
        .AsWcfService(new RestServiceModel().Hosted())
        .AsWcfService(new DefaultServiceModel().Hosted()
            .PublishMetadata(mex => mex.EnableHttpGet())
            .AddEndpoints(
                WcfEndpoint.ForContract<ISomeService>().BoundTo(new WSHttpBinding())
            )
        )
    );
    
    RouteTable.Routes.Add(new ServiceRoute("v1/rest", new WindsorServiceHostFactory<RestServiceModel>(_container.Kernel), typeof(ISomeService)));
    RouteTable.Routes.Add(new ServiceRoute("v1/ws", new WindsorServiceHostFactory<DefaultServiceModel>(_container.Kernel), typeof(ISomeService)));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to host multiple services using one WcfFacility and IIS, and I'm seeing
Using jQuery, how do I get the value from a textbox and then load
using MSQL 2005 I have a continuous set of flow measurements (averaged for each
We've got REST and SOAP endpoints for our service so we use WebFaultException to
Using Android NDK is it possible (from native C-code) to get a list of
Using JQuery,Is there any possible to capture images/scanned documents from digital Camera/Scanner Connected to
Using MATLAB, you have to start with a uniform distribution between (0,1). You need
I'm developing a website which attempts to utilize the SOA pattern. The services service
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
I am using the Wcf Facility, (windsor 2.5.2) latest version from github repo as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.