Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am beginner in wcf service, i create a one basic wcf service that contain http & tcp binding.

My configuration file are as follows,

XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="HelloFirstService.FirstWcfService" behaviorConfiguration="mexBehaviour">
        <endpoint address="HelloFirstWcfService" binding="basicHttpsBinding" contract="HelloFirstService.IFirstWcfService"></endpoint>
        <endpoint address="HelloFirstWcfService" binding="netTcpBinding" contract="HelloFirstService.IFirstWcfService"></endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"></endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost/"/>
            <add baseAddress="net.tcp://localhost:8050/"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <!--Allow to exchange metadata-->
        <behavior name="mexBehaviour">
          <serviceMetadata httpGetEnabled="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>




Please help me to solve this issue.
Thanks in advance.
Posted
Updated 26-Sep-15 7:37am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900