在Https上没有端点监听

在Https上没有端点监听

本文介绍了在Https上没有端点监听:// ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在几个网站上搜索了这个问题的答案,但没有一个解决方案似乎有效。

我有一个Web应用程序,它正在访问多个服务端点。这些服务是在与Web应用程序不同的项目中构建的,应用程序和服务在http和localhost上运行良好,但在使用https时在生产服务器上出错。



服务配置文件system.service模型部分如下...



'''

I have searched several sites for answers to this question but none of the solutions seem to be working.
I have a web application and it is accessing several service endpoints. The services were built in a separate project from the web application the application and services run fine in http and on the localhost but error out on the production servers when using https.

The services config file system.service model section is as follows...

'''

<system.serviceModel>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="false" />
  <behaviors>
            <serviceBehaviors>
                <behavior name="Magic.BusinessService.ServiceImplementation.MagicContactService_Behavior">
                    <serviceDebug includeExceptionDetailInFaults="true" />
                    <serviceMetadata httpGetEnabled="true" />
                </behavior>
                <behavior name="Magic.BusinessService.ServiceImplementation.MagicFeedbackService_Behavior">
                    <serviceDebug includeExceptionDetailInFaults="false" />
                    <serviceMetadata httpGetEnabled="true" />
                </behavior>
                <behavior name="Magic.BusinessService.ServiceImplementation.MagicResponseService_Behavior">
                    <serviceDebug includeExceptionDetailInFaults="true" />
                    <serviceMetadata httpGetEnabled="true" />
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <bindings>
            <basicHttpBinding>
                <binding name="ContactInformationRepositoryHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="5242880" maxBufferPoolSize="524288" maxReceivedMessageSize="5242880" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <security mode="Transport">
                        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
                        <message clientCredentialType="UserName" algorithmSuite="Default" />
                    </security>
                </binding>
                <binding name="LargeBuffer" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
                    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
                </binding>
            </basicHttpBinding>
        </bindings>
        <client>
      <!--<endpoint address="http://sena-devapps.wdw.disney.com/Cir.BusinessService.Host/ContactInformationRepository.svc"-->
      <endpoint address="https://shdcvdswa0510.apac.wdpr.disney.com/Cir.BusinessService.Host/ContactInformationRepository.svc" binding="basicHttpBinding" bindingConfiguration="ContactInformationRepositoryHttpEndpoint" contract="CIRService.ContactInformationRepositoryServiceContract" name="ContactInformationRepositoryHttpEndpoint" />
    </client>
        <services>
   <service behaviorConfiguration="Magic.BusinessService.ServiceImplementation.MagicContactService_Behavior" name="Magic.BusinessService.ServiceImplementation.MagicContactService">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="LargeBuffer" name="MagicContactHttpEndpoint" bindingNamespace="urn:Magic.BusinessService.ServiceContractModel" contract="Magic.BusinessService.ServiceContracts.IMagicContactServiceContract" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
   </service>
   <service behaviorConfiguration="Magic.BusinessService.ServiceImplementation.MagicFeedbackService_Behavior" name="Magic.BusinessService.ServiceImplementation.MagicFeedbackService">
    <endpoint address="" binding="basicHttpBinding" name="MagicFeedbackHttpEndpoint" bindingNamespace="urn:Magic.BusinessService.ServiceContractModel" contract="Magic.BusinessService.ServiceContracts.IMagicFeedbackServiceContract" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
   </service>
   <service behaviorConfiguration="Magic.BusinessService.ServiceImplementation.MagicResponseService_Behavior" name="Magic.BusinessService.ServiceImplementation.MagicResponseService">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="LargeBuffer" name="MagicResponseHttpEndpoint" bindingNamespace="urn:Magic.BusinessService.ServiceContractModel" contract="Magic.BusinessService.ServiceContracts.IMagicResponseServiceContract" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
   </service>
  </services>
    </system.serviceModel>





'''



Web应用程序配置文件system.servicemodel部分如下...



'''



'''

The web application config file system.servicemodel section is as follows...

'''

<system.serviceModel>
            <bindings>
      <basicHttpBinding>
        <binding name="wsSoap" closeTimeout="00:01:00" openTimeout="00:01:00"

          receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"

          bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="1055360" maxBufferPoolSize="524288" maxReceivedMessageSize="1055360"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="Transport" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="MagicContactHttpEndpoint" closeTimeout="00:01:00"

          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="1055360" maxBufferPoolSize="524288" maxReceivedMessageSize="1055360"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="MagicFeedbackHttpEndpoint" closeTimeout="00:01:00"

          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="1055360" maxBufferPoolSize="524288" maxReceivedMessageSize="1055360"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="MagicResponseHttpEndpoint" closeTimeout="00:01:00"

          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="2000000" maxBufferPoolSize="2000000" maxReceivedMessageSize="2000000"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="wsSoap1" closeTimeout="00:01:00" openTimeout="00:01:00"

          receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"

          bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="wsSoap2" closeTimeout="00:01:00" openTimeout="00:01:00"

          receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"

          bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="MagicResponseHttpEndpoint1" closeTimeout="00:01:00"

          openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"

          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"

          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None"

              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <!-- <endpoint address="http://keystonedev-east.disney.com/AuthorizationService/ws.asmx"
        binding="basicHttpBinding" bindingConfiguration="wsSoap" contract="KeystoneAuth.wsSoap"
        name="wsSoap" /> -->
      <endpoint address="https://shdcvdswa0510.apac.wdpr.disney.com/Magic.BusinessService.Host/MagicResponseService.svc"

        binding="basicHttpBinding" bindingConfiguration="MagicResponseHttpEndpoint"

        contract="MagicResponseService.MagicResponseServiceContract"

        name="MagicResponseHttpEndpoint" />
      <endpoint address="https://shdcvdswa0510.apac.wdpr.disney.com/Magic.BusinessService.Host/MagicFeedbackService.svc"

        binding="basicHttpBinding" bindingConfiguration="MagicFeedbackHttpEndpoint"

        contract="MagicFeedbackService.MagicFeedbackServiceContract"

        name="MagicFeedbackHttpEndpoint" />
      <endpoint address="https://keystone-ems-dev.disney.pvt/AuthorizationService/ws.asmx"

        binding="basicHttpBinding" bindingConfiguration="wsSoap" contract="KeystoneAuth.wsSoap"

        name="wsSoap" />
      <endpoint address="https://shdcvdswa0510.apac.wdpr.disney.com/Magic.BusinessService.Host/MagicContactService.svc"

        binding="basicHttpBinding" bindingConfiguration="MagicContactHttpEndpoint"

        contract="MagicContactService.MagicContactServiceContract" name="MagicContactHttpEndpoint" />
    </client>
  </system.serviceModel>



’’’



Any help would be greatly appreciated.


'''

Any help would be greatly appreciated.

推荐答案


这篇关于在Https上没有端点监听:// ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 09:09