天天看點

基礎(使得IIS支援TCP協定)

iis支援多種協定

1、安裝WAS

2、配置IIS

<netTcpBinding>
         <security mode="None">
           <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
           <message clientCredentialType="Windows" />
         </security>
       </netTcpBinding>
     </bindings>
     
     <services>
       <service behaviorConfiguration="MyBehavior" name="WCFService.Service1">
         <endpoint address="" binding="netTcpBinding" contract="WCFService.IService1" bindingConfiguration="netTcpBindConfig"></endpoint>
         <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" ></endpoint>
       </service>
     </services>
     
     <behaviors>
       <serviceBehaviors>
         <behavior name="MyBehavior" >
           <serviceMetadata/>
           <serviceDebug includeExceptionDetailInFaults="true" />
           <dataContractSerializer maxItemsInObjectGraph="6553600"/>
         </behavior>
       </serviceBehaviors>      

繼續閱讀