我使用的网站包含.svc文件并作为其余api托管在https上。我的问题是: 我的网站已经SVCUTIL.exe
是https://XXXXXXX
但是当我以https叫它请求失败,但以http request.And我不想使用SSL证书 感谢无法通过https请求呼叫
这是我的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>
您可以启用跟踪(http://msdn.microsoft.com/en-us/library/ms733025.aspx )在你的WCF服务上看看使用SSL时发生了什么。 – Rajesh