我可以使用IIS来使用HTTP以外的传输来托管WCF服务吗?

时间:2022-05-19 08:33:38

I've searched and didn't find any question similar, so I'm asking.

我搜索过,没有找到类似的问题,所以我问。

Is it possible to use IIS with transport other thna HTTP?

是否可以使用IIS与HTTP之间的传输?

If so, how to configure it?

如果是这样,如何配置?

1 个解决方案

#1


Yes. This can be done in IIS7. You have to enable the protocols that you want to use and then just create the appropriate endpoints for your service. Here's an example of doing that using net.tcp as the transport.

是。这可以在IIS7中完成。您必须启用要使用的协议,然后只为您的服务创建适当的端点。以下是使用net.tcp作为传输的示例。

alt text http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=24dd85f6-eec6-4c47-85b1-6f75fed49198 alt text http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=ea9a7245-742f-48db-859f-73133e8731ca

替代文字http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=24dd85f6-eec6-4c47-85b1-6f75fed49198替代文字http://www.singingeels.com/Articles/Articles/UserImage.aspx ?图像标识= ea9a7245-742f-48分贝-859f-73133e8731ca

#1


Yes. This can be done in IIS7. You have to enable the protocols that you want to use and then just create the appropriate endpoints for your service. Here's an example of doing that using net.tcp as the transport.

是。这可以在IIS7中完成。您必须启用要使用的协议,然后只为您的服务创建适当的端点。以下是使用net.tcp作为传输的示例。

alt text http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=24dd85f6-eec6-4c47-85b1-6f75fed49198 alt text http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=ea9a7245-742f-48db-859f-73133e8731ca

替代文字http://www.singingeels.com/Articles/Articles/UserImage.aspx?ImageID=24dd85f6-eec6-4c47-85b1-6f75fed49198替代文字http://www.singingeels.com/Articles/Articles/UserImage.aspx ?图像标识= ea9a7245-742f-48分贝-859f-73133e8731ca