【发布时间】:2011-11-22 07:04:42
【问题描述】:
我在整个互联网上都查看过堆栈溢出来解决这个问题,但没有任何效果我希望有人知道我错过了什么。
我正在尝试连接到 https: 服务,但出现此错误
"提供的 URI 方案 'https' 无效;应为 'http'。参数名称:via"
这是我的配置:
<system.serviceModel>
<client>
<endpoint address="https://authenicate.example.com/service/authenticate" behaviorConfiguration="Project" binding="basicHttpBinding" bindingConfiguration="SSLBinding" contract="Example.Test.Authentication" name="InternalAuthenticate" />
</client>
<bindings>
<basicHttpBinding>
<binding name="SSLBinding" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<security mode="Transport" />
<readerQuotas maxDepth="32" maxStringContentLength="2048000" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<services />
<behaviors>
<endpointBehaviors>
<behavior name="Project">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="DispatcherBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
有什么想法吗?
【问题讨论】:
标签: asp.net web-services http https web