2013-01-14 21 views
1

是否可以將HTTPS和HTTP支持添加到像這樣的自定義綁定?在自定義綁定上啓用HTTP和HTTPS

 <customBinding> 
    <binding name="RS2010Soap12"> 
     <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" 
      messageVersion="Soap12" writeEncoding="utf-8"> 
     <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
      maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
     </textMessageEncoding> 
     <httpTransport manualAddressing="false" maxBufferPoolSize="524288" 
      maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Ntlm" 
      bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" 
      keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous" 
      realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" 
      useDefaultWebProxy="true" /> 
    </binding> 
    </customBinding> 

端點:

<endpoint address="https://Server1/ReportServer/ReportService2010.asmx" 
    binding="customBinding" bindingConfiguration="RS2010Soap12" 
    contract="Program.ReportingService2010Soap" 
    name="RS2010Soap12" /> 

回答

0

不,你必須創建兩個綁定和公開兩個端點爲您服務。