2014-09-26 6 views
0

저는 WCF 서비스에 TLS를 추가하려고 시도해 왔습니다. http가 아닌 https를 통해 서비스에 액세스하려고 할 때까지는 아무 문제가 없습니다. WCF 테스트 클라이언트에 WCF 서비스를 추가 할 때 ,이 얻을 :WCF 서비스에 TLS를 추가하려면 어떻게합니까?

Error: Cannot obtain Metadata from [THELINK] If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at [an MS link] Exchange Error URI: [THELINK]
Metadata contains a reference that cannot be resolved: '[THELINK]'.
There was no endpoint listening at [THELINK] that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. The remote server returned an error: (403) Forbidden.HTTP GET Error URI: [THELINK]
There was an error downloading '[THELINK]'. The request failed with HTTP status 403: Forbidden.

링크가 교체에 대한 미안하지만, 나는 새로운 그리고 난 명성이없는 것 같습니다 :)

감사 모르 텐

+0

그래서 당신은 당신의 HTTPS 엔드 포인트에 대한 메타 데이터 게시를 활성화 좀 더 유용한 정보를 제공 할 수 있는가? –

+0

아마도 도움이 될까요? http://blog.rsuter.com/?p=281 –

+0

web.config가 도움이 될 것입니다. – nat

답변

0

당신이 당신의

에 의해 참조되는

<behaviors> <serviceBehaviors> <behavior name="YourSerivceBehaviourName"> <serviceMetadata httpsGetEnabled="true" /> <-- this bit ? ... ... 을해야합니까

<service name="...." behaviorConfiguration="YourSerivceBehaviourName">

또는 Web.config의에서

<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 

?

인증서가 실제 발견되지 않은 경우에도 테스트 클라이언트가 신음을합니다. 즉, 테스트를 위해 자체 검증 된 인증서입니다. 하지만 403은 여러분이 제공하는 자격 증명이 정확하지 않다고 제안하는 것으로 보이는데, SSL 바인딩에 설정된 clientCredentialType은 무엇입니까?

하고 CustomErrors가와 브라우저에서 링크를 맞을 경우 어떤 일이 발생 .. 이 당신에게

관련 문제