简体   繁体   English

测试Endpoint与IIS托管的WCF服务的兼容性

[英]Testing for EndPoint compatibility with IIS hosted WCF service

I am trying to deploy a WCF service to IIS. 我正在尝试将WCF服务部署到IIS。 I would like to offer both HTTP and HTTPS endpoints, but Im not guaranteed that the IIS servers will have HTTPS available. 我想同时提供HTTP和HTTPS端点,但是我不能保证IIS服务器将具有HTTPS可用。 If its not, then my service will fail start. 如果不是,则我的服务将无法启动。

Is it it possible to test if an endpoint is viable before adding it to the service? 在将端点添加到服务之前是否可以测试该端点是否可行? Right now i am limited to using .NET 3.5(sp1) 现在我仅限于使用.NET 3.5(sp1)

If your site exposes some page with known address you can try to access it with HttpWebRequest over HTTPS but I don't think it is a good idea. 如果您的站点公开了一些具有已知地址的页面,则可以尝试通过HTTPS通过HttpWebRequest访问它,但我认为这不是一个好主意。 Wrap your deployment into installation package and offer administrator to choose if HTTPS endpoint should be used or not. 将您的部署包装到安装包中,并让管理员选择是否使用HTTPS终结点。 Your installation package will modify service configuration based on administrator's choice. 您的安装软件包将根据管理员的选择修改服务配置。

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

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