これは、WCF がサポートするシナリオの 1 つで、1 つのインターフェイスが 2 つの異なるエンドポイントとして公開されます。
これらは 2 つの異なるアドレスを持ちますが、同じコードを指します。
<service
name="Microsoft.ServiceModel.Samples.CalculatorService"
behaviorConfiguration="CalculatorServiceBehavior">
<!-- This endpoint is exposed at the base address provided by host: http://localhost/servicemodelsamples/service.svc -->
<endpoint address=""
binding="basicHttpBinding"
contract="Microsoft.ServiceModel.Samples.ICalculator" />
<!-- secure endpoint exposed at {base address}/secure: http://localhost/servicemodelsamples/service.svc/secure -->
<endpoint address="secure"
binding="wsHttpBinding"
contract="Microsoft.ServiceModel.Samples.ICalculator" />
...
</service>
参照: http://msdn.microsoft.com/en-us/library/ms751515.aspx