몇 달 만에 다루지 않은 프로젝트를 선택했습니다. WCF를 배우기 위해 프로젝트를 사용했습니다. Visual Studio에서 실행하면 생성 된 WSDL을 얻을 수있는 페이지가 열리고, 서비스 코드.이 WCF 서비스는 어떻게 작동합니까?
내가의 Web.config 볼 때 거기에 대한 정보는 없음 옆에 :
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
없음 서비스 엔드 포인트 또는 아무것도, 그럼에도 불구하고이 (적어도 Visual Studio에서) 잘 실행, 어떻게입니다 일?
코드 또는 구성 파일을 통해 WCF를 구성 할 수 있습니다. 코드로 서비스를 구성 했습니까? – Chris
아니요, 구성이 없으므로 세 가지 방법이있는 .svc 파일 만 있습니다. 이 경우 @vcsjones가 정확하면 –
입니다. WCF의 기본값으로 실행 중입니다. – Chris