簡體   English   中英

在自定義綁定上啟用HTTP和HTTPS

[英]Enable HTTP and HTTPS on a custom binding

是否可以向這樣的自定義綁定添加HTTPS和HTTP支持?

      <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" />

不,您必須創建兩個綁定並為您的服務公開兩個端點。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM