代码之家  ›  专栏  ›  技术社区  ›  Mini

在Windows Process Activation Services(WAS)和IIS 7之间进行选择

  •  1
  • Mini  · 技术社区  · 8 年前

    我的WCF服务目前将由桌面/移动WCF客户端使用,因此我现在计划只使用TCP/IP。但将来可能会扩展到包括HTTP以支持Web。

    1 回复  |  直到 8 年前
        1
  •  3
  •   user3188639 user3188639    8 年前

    从文档中( https://technet.microsoft.com/en-us/library/cc735229(v=ws.10).aspx

    Windows Process Activation Service(WAS)管理应用程序池配置以及HTTP和其他协议的工作进程的创建和生存期。万维网发布服务(W3SVC)和其他服务依赖于WAS。

    您可以使用IIS管理(在IIS管理器的右上角,在“编辑站点|绑定…”下)或命令行工具配置绑定,如下所示:

    %windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.tcp',bindingInformation='808:*']
    

    https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-install-and-configure-wcf-activation-components

    这里:

    https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-host-a-wcf-service-in-was