【发布时间】:2012-02-19 02:30:57
【问题描述】:
我在下面的配置中使用了没有“https”的配置。现在 url 更改为 "https"。但我收到 “提供的 URI 方案 'https' 无效;预期为 'http'。参数名称:通过” 调用时出错。
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="ERightsPortBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://dev.company.com/jws/ws/EService?WSDL" binding="basicHttpBinding" bindingConfiguration="ERightsPortBinding" contract="ERights.ERights" name="ERightsPort" />
</client>
如何修复错误?
【问题讨论】:
-
我最近使用stackoverflow.com/questions/2435823/… 解决了这个问题。
标签: asp.net wcf web-services