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 9114069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:07:02+00:00 2026-06-17T04:07:02+00:00

Below there is one config file sample. There are many binding available like **basicHttpBinding,netTcpBinding,wsDualHttpBinding**

  • 0

Below there is one config file sample. There are many binding available like

**basicHttpBinding,netTcpBinding,wsDualHttpBinding** basicHttpBinding,netTcpBinding,wsDualHttpBinding

I am new in WCF so many confusion arries in mind and those are—-

So how people create proxy from the client side to connect the wcf service.Naturally they all use mex endpoint address http://YourServer/Services/MyService/mex

If one mex endpoint is enough then how client can give instruction to his client apps to connect to wcf service using netTcpBinding or wsDualHttpBinding.

Please share knowledge with me that:
1) If I create proxy using mex endpoint address from client side then which bindings my apps will use to connect to wcf service ?

2) How can I connect to wcf service from client side using netTcpBinding or wsDualHttpBinding is there any trick available using code ?

Looking for in-depth discussion.Thanks

<system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="Default">
          <serviceMetadata httpGetEnabled="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service name="YourNamespace.YourService" behaviorConfiguration="Default">
        <endpoint name="Default" 
            address="http://YourServer/Services/MyService" 
            binding="basicHttpBinding" 
            contract="YourNamespace.IYourService"/>
        <endpoint name="TCP" 
            address="net.tcp://YourServer/ServicesTCP/MyService" 
            binding="netTcpBinding" 
            contract="YourNamespace.IYourService"/>
        <endpoint name="mex" 
            address="http://YourServer/Services/MyService/mex" 
            binding="mexHttpBinding" 
            contract="IMetadataExchange"/>
        <endpoint name="Dual" 
            address="http://YourServer/Services/MyService/Dual" 
            binding="wsDualHttpBinding" 
            clientBaseAddress="http://localhost:8001/client/"
            contract="YourNamespace.IYourDualService"/>
      </service>
    </services>
  </system.serviceModel>
  • 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-17T04:07:03+00:00Added an answer on June 17, 2026 at 4:07 am

    If you have service with multiple endpoints the created proxy contains separate client class for every contract type exposed on the service. If you have multiple endpoints with the same contract those endpoints are defined in client’s configuration file and each of these endpoints have a name specified. When you want to call the service with some specific binding you will just pass the name of the endpoint configuration to a proxy constructor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any 256 color xterm for MacOS x? Like the one described below?
In the Code Below there are Two Classes. One Object of type two is
I will have a screen in which there will be 11 images one below
Say I have a class with three constructors, like the one below: public class
tl;dr Below is the app.config from my class library which simplifies file manipulation in
Of the below three functions: getc getchar & scanf which is the best one
can any one explain inter relation between these below given directives ; Do not
As shown below the Table Recording contains three foreign keys, only one of which
In the image below there is an area, which has an unknown (custom) class.
See edits below There is no casting going on with the termination check. I

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.