app.config
このサービス ファイルをC#
コードで再現する必要があります。
<system.serviceModel>
....
<protocolMapping>
<add scheme="https" binding="wsHttpBinding" />
</protocolMapping>
...
特にそのscheme
部分なので、私はこれをしました:
var binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.Transport;
...
しかし、私がやろうとするとbinding.Scheme = ...
、コンパイル時エラーが発生しますthe property Scheme has no setter
。
コードで設定する方法は?