WCF Client configuration

Code


多base address 的配置文件

<service behaviorConfiguration="MyServiceBehavior" name="Hello">

  
<endpoint

    
address="httpHello"

    binding
="basicHttpBinding"

    contract
="IHello" />

  
<endpoint

    
address="nettcpHello"

    binding
="netTcpBinding"

    contract
="IHello" />

  
<endpoint address="MEX" binding="mexHttpBinding" contract="IMetadataExchange" />

 

  
<host>

    
<baseAddresses>

      
<add baseAddress="http://localhost:8080/"/>

      
<add baseAddress="net.tcp://localhost:8090/"/>

    
</baseAddresses>

  
</host>

 

</service>

posted @ 2008-11-10 22:05  skylai  阅读(317)  评论(0编辑  收藏  举报