我的代码位于.net 4.5
Web服务API位于https
我们是否需要客户端代码上的SSL证书才能使用https Web服务API?
我的web.config如下
<system.serviceModel>
<client>
<endpoint address="https://example.com/webservice.asmx"
binding="wsHttpBinding" bindingConfiguration="TransportSecurity"
contract="mynamespace.MyServicesSoap" name="MyServicesSoap" />
</client>
<bindings>
<basicHttpBinding>
<binding name="MyServicesSoap" />
</basicHttpBinding>
<wsHttpBinding>
<binding name="TransportSecurity">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>