2010-05-31 55 views
4

服務客戶端的WCF配置有三個部分: 查看綁定=> clientBaseAddressWCF配置文件:爲什麼我們在綁定部分需要clientBaseAddress?

爲什麼我們需要指定回調地址? 此字段是否必填? 爲什麼.NET無法確定客戶端的地址? 這是否意味着我可以指定位於其他某臺機器上的客戶端端點?

<configuration> 
    <system.serviceModel> 
    <client> 
     <endpoint address= 
    </client> 
    <bindings> 
     <wsDualHttpBinding> 
     <binding name= 
       clientBaseAddress= 
       maxBufferPoolSize="2147483647" 
       maxReceivedMessageSize="2147483647" 
     </binding> 
     </wsDualHttpBinding> 
    </bindings> 
    <behaviors> 
     <endpointBehaviors> 
     <behavior name=> 
     </behavior> 
     </endpointBehaviors> 
    </behaviors> 
    </system.serviceModel> 

回答