http 및 net.tcp에 대해 WAS 및 IIS에서 내 WCF 4 웹 서비스를 호스팅하려고합니다. net.tcp 바인딩을위한 .svc 확장자를 제거 할 수 있습니까 ?? 메시지를 받아 들일 수 //myserver.com/service/TestService : 다음과 같은 처리를 할 경우net.tcp에서 .svc 확장명을 제거하십시오.
나는 net.tcp에서 듣기에는 엔드 포인트가 없었다 오류
를 얻을. 이는 종종 잘못된 주소 또는 SOAP 작업으로 인해 발생합니다. 자세한 내용은 InnerException을 참조하십시오.
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true">
<serviceActivations>
<add relativeAddress="TestService.svc" service="Web.TestService"/>
</serviceActivations>
</serviceHostingEnvironment>
<services>
<service name="Web.TestService" behaviorConfiguration="WebService">
<host>
<baseAddresses>
<add baseAddress="http://myserver.com/service/" />
</baseAddresses>
</host>
<endpoint address="" contract="Web.ITestService" binding="basicHttpBinding"></endpoint>
<endpoint address="net.tcp://myserver.com:808/service/TestService" contract="Web.ITestService" binding="netTcpBinding"></endpoint>
<endpoint address="net.tcp://myserver.com:808/service/TestService/mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"></endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WebService">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
WCF 알아낼 수있을만큼 똑똑하다 올바른 기본 주소 어쨌든 나는 기본 주소를 제거하고 끝점 주소를 설정하려고했지만 어느 쪽도 작동하지 않습니다. –