Jam*_*123 13 asp.net wcf web-services
我使用下面的配置没有"https".现在网址已更改为"https".但我得到"提供的URI方案'https'无效;预期'http'.Parameter名称:通过" 调用它时出错.
<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>
Run Code Online (Sandbox Code Playgroud)
如何修复错误?
Dav*_*ter 26
将security
标签模式更改为时,您会得到什么Transport
?
<security mode="Transport">
Run Code Online (Sandbox Code Playgroud)
我们使用https服务,这是我们使用的模式 - 我们None
在开发环境中用于http.
归档时间: |
|
查看次数: |
29327 次 |
最近记录: |