我想通過basicHttpBinding通過https使用WCF服務。這裏是我的web.config:提供的URI方案'https'無效;預計'http'。參數名稱:通過
<service behaviorConfiguration="MyServices.PingResultServiceBehavior"
name="MyServices.PingResultService">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="defaultBasicHttpBinding"
contract="MyServices.IPingResultService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
...
<bindings>
<basicHttpBinding>
<binding name="defaultBasicHttpBinding">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
...
我使用WCFStorm這是能夠檢索所有連接元數據正確,但是當我調用我得到的實際方法時:
提供的URI方案'https'無效;預計'http'。 參數名稱:via
本地IIS 7使用自簽名的證書安裝 – isg 2010-03-12 21:31:45
「此外,請確保您更改客戶端配置,以實現交通運輸的安全性。」 - 好建議。太容易被忽視了,WCF將不會在錯誤中提供線索。 – 2010-06-03 19:33:19