2009-12-14 5 views
2
  1. 동일한 포트에서 여러 개의 netTcpBinding 끝점을 노출 할 수 있다는 것을 알고 있습니다.
  2. IIS에서 사용하는 동일한 포트에서 끝점을 노출 할 수 없다는 것을 알고 있습니다.
  3. 동일한 포트에서 여러 webHttpBinding 끝점은 어떻게됩니까?

답변

2

모든 주소, 바인딩은 WCF에서 계약 조합 즉 당신은 같은 주소로 같은 바인딩에 여러 개의 계약 (ITransactService, IQueryService)을 (webHttp 또는 HTTP) 할 수 있습니다, 고유해야합니다 (http://localhost:8080/MyService)

<endpoint name="MyServiceTrans" binding="customBinding" 
       bindingConfiguration="secureBinaryHttpBinding" 
       contract="MyService.SL.ITransactService" 
       behaviorConfiguration="MyCustomEndpointBehavior"/> 

    <endpoint name="MyServiceQuery" binding="customBinding" 
       bindingConfiguration="secureBinaryHttpBinding" 
       contract="MyService.SL.IQueryService" 
       behaviorConfiguration="MyCustomEndpointBehavior"/> 

    <endpoint name="MyServiceAdmin" binding="customBinding" 
       bindingConfiguration="secureBinaryHttpBinding" 
       contract="MyService.SL.IAdminService" 
       behaviorConfiguration="MyCustomEndpointBehavior"/> 

위의 세 개의 맞춤 끝점, 동일한 바인딩 및 동일한 주소, 다른 계약

관련 문제