WCF随便又又一篇

  <system.serviceModel>
    <services>
      <service name="StockQuoteService.Service1" behaviorConfiguration="StockQuoteService.Service1Behavior">
          <host>
              <baseAddresses>
                  <add baseAddress="http://localhost:8000/Design_Time_Addresses/StockQuoteService/Service1/" />
              </baseAddresses>
          </host>
          <endpoint address ="net.tcp://localhost:8731/Design_Time_Addresses/StockQuoteService/Service1" binding="netTcpBinding" contract="StockQuoteService.IService1" />
          <endpoint address ="net.pipe://localhost/Design_Time_Addresses/StockQuoteService/Service1" binding="netNamedPipeBinding" contract="StockQuoteService.IService1" />
          <endpoint              
              address="mex" 
              binding="mexHttpBinding" contract="IMetadataExchange">              
          </endpoint>
      </service>
    </services>
      
      <behaviors>
          <endpointBehaviors></endpointBehaviors>
          <serviceBehaviors>
              <behavior name="StockQuoteService.Service1Behavior">
                  <serviceMetadata httpGetEnabled="True"/>
                  <serviceDebug includeExceptionDetailInFaults="False" />
              </behavior>
          </serviceBehaviors>
      </behaviors>

  </system.serviceModel>
posted @ 2009-12-04 13:08  包建强  Views(708)  Comments(1Edit  收藏  举报