简体   繁体   English

Wcf Web 服务在迁移到 https 后无法正常工作

[英]Wcf webservice not working after migration to https

My react app was working fine when we were using wcf service over http.当我们在 http 上使用 wcf 服务时,我的反应应用程序运行良好。 We decided to implement SSL for our website and now that service is not working.我们决定为我们的网站实施 SSL,现在该服务无法正常工作。 Tried many web config settings but its not working.尝试了许多 web 配置设置,但它不起作用。 Read many docs on microsoft site but can not solve this problem.阅读微软网站上的许多文档,但无法解决此问题。

Webconfig网络配置

    <bindings>
    <webHttpBinding>
      <binding name="largeMessage" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" closeTimeout="00:03:00" openTimeout="00:03:00" receiveTimeout="00:10:00" sendTimeout="00:03:00">
        <readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />
        <security mode="Transport"/>
      </binding>
    </webHttpBinding>
  </bindings>
  <services>
    <service name="Service.EService" behaviorConfiguration="serviceBehaviors">
      <endpoint address="" contract="Service.IEService" binding="webHttpBinding" bindingConfiguration="largeMessage" behaviorConfiguration="web"></endpoint>
      <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" bindingConfiguration="httpsBinding" />
    </service>
  </services>
  1. Put httpsGetEnabled="true"把 httpsGetEnabled="true"

  2. Making security mode="Transport"使安全模式=“传输”

3 Removing line endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" bindingConfiguration="httpsBinding" /> 3 删除行端点 contract="IMetadataExchange" binding="mexHttpBinding" address="mex" bindingConfiguration="httpsBinding" />

After making these changes I am now be able to get the service running on https.进行这些更改后,我现在可以让服务在 https 上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM