我正在使用包含 .svc 文件并托管在 https 作为 rest api 的网站。我的问题是:我的网站有SVCUTIL.exe,https://XXXXXXX但是当我使用 https 请求调用它时,它会失败,但使用 http 请求可以正常工作。而且我不想使用 SSL 证书谢谢
这是我的 webconfig 设置:
  <serviceBehaviors>
    <behavior name="Mybehaviour">
      <serviceMetadata httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
  <service behaviorConfiguration="Mybehaviour" name="PBUIService">
    <endpoint address="https://XXXXXXXXXXXXXXX" behaviorConfiguration="PBBehaviour" binding="webHttpBinding" bindingConfiguration="wsHttpBindingSettings" contract="PBUIService">
    </endpoint>
    <endpoint address="mex" binding="mexHttpsBinding"
 contract="IMetadataExchange" />
  </service>   
</services>