简体   繁体   中英

Wcf webservice not working after migration to https

My react app was working fine when we were using wcf service over http. We decided to implement SSL for our website and now that service is not working. Tried many web config settings but its not working. 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"

  2. Making security mode="Transport"

3 Removing line endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" bindingConfiguration="httpsBinding" />

After making these changes I am now be able to get the service running on https.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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