简体   繁体   English

使用HTTPS而不是HTTP从IIS 7.5运行wcf服务

[英]Run wcf service from IIS 7.5 with HTTPS instead of HTTP

I have created simple wcf service. 我创建了简单的wcf服务。 After hosting the same at IIS 7.5. 在IIS 7.5托管后。 I am able to access the wcf service with HTTP , but I want to access the service using HTTPS. 我可以使用HTTP访问wcf服务,但是我想使用HTTPS访问该服务。

Example : http://myservice.publicservice/MyPublicService.svc?wsdl is accessible if I browse from IIS. 示例:如果我从IIS浏览,则可以访问http://myservice.publicservice/MyPublicService.svc?wsdl

but https://myservice.publicservice/MyPublicService.svc?wsdl is not accessible. 但是无法访问https://myservice.publicservice/MyPublicService.svc?wsdl

you need to enable https binding in IIS. 您需要在IIS中启用https绑定。 right click on the site where your service is hosted and there should be an option "Edit Bindings". 右键单击托管您的服务的站点,然后应该有一个“编辑绑定”选项。 Use that to add an https binding 使用它添加一个https绑定

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM