간단한 문제 :netTcpBinding 서비스에 대한 서비스 참조를 추가하는 방법은 무엇입니까?
자기 바로 서비스 참조 추가> 서비스 참조를 클릭 클라이언트 프로젝트에서 netTcpBinding 서비스를 호스팅하는 방법...
은 "발견은"그것은 netTcpBinding 하나를 포함 WsHttpBinding과를 사용하여 모든 서비스를 참조 클릭. netTcpBinding를 확장 할 때 그러나 계약을 탐색 할 수 있으며 다음과 같은 오류 던져 :
이 MetadataExchangeTcpBinding 바인딩과 엔드 포인트에 대한 구성표 net.tcp 일치하는 기본 주소를 찾을 수 없습니다입니다. 등록 된 기본 주소는 이고 주소 체계는 [http]입니다.
다음과 같은 .Net WCF 샘플은 매우 훌륭하고 멋지지만 샘플에서는 설정 파일이 설정되는 방법과 wizzard를 통해 프록시를 가져 오는 방법을 보여주지 않습니다.
다음C : \ WF_WCF_Samples \ WCF \ 기본 \ 바인딩 \ NET \ Tcp를 \ 기본 CS \
서비스 설정 파일은 ... (I 어떤 기본 ADRESS를 사용하지 않는, 그것을 그것 없이는 내가 일해야한다)
<service behaviorConfiguration="Canopus.WebServices.LogAndNotificationService"
name="Canopus.WebServices.LogAndNotificationService">
<endpoint address="" binding="netTcpBinding"
contract="Canopus.WebServices.ILogAndNotificationService" />
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
</service>
<behaviors>
<serviceBehaviors>
<behavior name="Canopus.WebServices.LogAndNotificationService">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
당신의 도움에 감사드립니다!