2012-10-10 2 views
1

오류를 제공합니다 :WCF 서비스를 통해 HTTPS 다음과 같이 내가 구성으로 WCF 서비스를 만든

<!-- This is the binding for SSL--> 
    <wsHttpBinding> 
    <binding name="SSLBinding"> 
     <security mode="Transport" > 
     <transport clientCredentialType="None" ></transport>    
     </security> 
    </binding>  
    </wsHttpBinding> 
    <!-- SSL Binding Ends here.--> 

</bindings> 

<behaviors> 
    <serviceBehaviors> 

    <!-- This is the behavior we have defined for SSL configuration--> 
    <behavior name="SSLBehavior"> 
     <serviceMetadata httpsGetEnabled="True"/>   
    </behavior> 
    <!-- SSL Behavior Ends here -->   
    </serviceBehaviors> 
</behaviors> 

<services> 
    <!-- Service configured alongwith its Mex Endpoint-->  
    <service name="CalculatorService.Service1" behaviorConfiguration="SSLBehavior"> 
    <endpoint contract="CalculatorService.IService1" name="SSLAddress" binding="wsHttpBinding" bindingConfiguration="SSLBinding"></endpoint> 
    <endpoint name="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint> 
    </service> 

</services> 
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" /> 

나는 이름이 엔드 포인트에서

A binding instance has already been associated to listen URI 
'https://wd-xpa7kyy12d3.XXXX.com/CalculatorService/Service1.svc'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config. 

로 오류가 발생하고 IIS 5.1에 http://www.codeproject.com/Articles/36705/7-simple-steps-to-enable-HTTPS-on-WCF-WsHttp-bindi

을 WCF 서비스에 SSL을 호스팅하기 위해 다음 자습서를 사용했다 "SSLAddress는"나는 "주소"를 추가 'https://wd-xpa7kyy12d3.XXXX.com/CalculatorService/Service1.svc'로 표시되었지만이 URL과 함께 서비스 참조를 추가 할 수 없어서 특별히 WSDL 경로를 지정해야했습니다.

WSDL 경로를 제공하고 서비스 참조를 콘솔 응용 프로그램에 성공적으로 추가 한 후에도 클라이언트 프록시가 메서드를 실행할 때 오류가 발생했습니다. 그래서 나는 끝점에서 주소 속성을 제거하고 이제이 문제가오고있다. 현재 구성에서 무엇이 잘못되었는지 확신하지 못합니까? 도와 주셔서 감사합니다.

답변

1

시도하여 메타 데이터 끝점에

address="mex" 

를 추가. 이 어드레스로

https://wd-xpa7kyy12d3.XXXX.com/CalculatorService/Service1.svc/mex 

들 수 있도록 지정된 주소는 상대 경로 인 끝낸다. 다른 끝 점이 남아 있습니다

https://wd-xpa7kyy12d3.XXXX.com/CalculatorService/Service1.svc 
+1

좋은 사람입니다. 그것은 효과가 있었다. 감사. –