Return to Snippet

Revision: 55282
at February 1, 2012 08:52 by rengber


Updated Code
<system.serviceModel>
    <services>
      <service name="WCFServiceStuff.DoStuffImpl">
        <endpoint address="net.tcp://localhost:8001" 
                  binding="netTcpBinding" 
                  contract="WCFServiceStuff.IDoStuff" />
      </service>
    </services>
  </system.serviceModel>


With MetaData added

  <system.serviceModel>
    <services>
      <service name="WCFServiceStuff.DoStuffImpl" 
               behaviorConfiguration="mex">
        <endpoint address="net.tcp://localhost:8001" 
                  binding="netTcpBinding" 
                  contract="WCFServiceStuff.IDoStuff" />
        <endpoint address="net.tcp://localhost:8001/mex" 
                  binding="mexTcpBinding" 
                  contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="mex">
          <serviceMetadata/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

Revision: 55281
at February 1, 2012 07:45 by rengber


Initial Code
<system.serviceModel>
    <services>
      <service name="WCFServiceStuff.DoStuffImpl">
        <endpoint address="net.tcp://localhost:8001" 
                  binding="netTcpBinding" 
                  contract="WCFServiceStuff.IDoStuff" />
      </service>
    </services>
  </system.serviceModel>

Initial URL


Initial Description
ABC - Address Binding Contract
Note that the Service Name and Contract must match a real live type (case Sensitive)
Binding name is also case sensitive.

Initial Title
Minimalist WCF Server-side Config File

Initial Tags
xml

Initial Language
C#