Asp.net VS 2010 VB.NET HTTPS服务参考
我有一个使用http连接到web服务的windows应用程序。我在网上读了几篇关于如何使用https连接的文章。我已将IIS设置为使用https,但无法让应用程序使用它。这不是WCF服务 调用web服务时收到的错误是 提供的URI方案“https”无效;应为“http”。 参数名称:via 我已经读到,我需要将安全模式添加到app.config,但当我这样做时,它不会改变我的错误 这是我的app.config摘录Asp.net VS 2010 VB.NET HTTPS服务参考,asp.net,vb.net,Asp.net,Vb.net,我有一个使用http连接到web服务的windows应用程序。我在网上读了几篇关于如何使用https连接的文章。我已将IIS设置为使用https,但无法让应用程序使用它。这不是WCF服务 调用web服务时收到的错误是 提供的URI方案“https”无效;应为“http”。 参数名称:via 我已经读到,我需要将安全模式添加到app.config,但当我这样做时,它不会改变我的错误 这是我的app.config摘录 <system.serviceModel> <bindi
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Service1SoapClient" openTimeout="00:11:00" sendTimeout="00:11:00"
maxReceivedMessageSize="9999999"/>
<binding>
<security mode="Transport"></security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://lenovo-pc/service1.asmx" binding="basicHttpBinding"
bindingConfiguration="Service1SoapClient" contract="BankService.Service1Soap"
name="Service1Soap" />
</client>
</system.serviceModel>
我想我明白了。我看了几件事,但最后还是做了下面的工作
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Service1SoapClient" openTimeout="00:11:00" sendTimeout="00:11:00"
maxReceivedMessageSize="9999999">
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Certificate" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="secureBehaviours">
<serviceMetadata httpsGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<client>
<endpoint address="https://lenovo-pc/service1.asmx" binding="basicHttpBinding"
bindingConfiguration="Service1SoapClient" contract="BankService.Service1Soap"
name="Service1Soap" />
</client>
您是否尝试过发布的建议解决方案?我相信我已经找到了。这是一些事情。