以下を使用して、コードでサービス参照を定義しています。
EndpointAddress NewEndPoint =
new EndpointAddress("http://example.com/someservice.asmx");
sr_SomeService.SomeServiceSoapClient _SomeService =
new sr_SomeService.SomeServiceSoapClient(
new System.ServiceModel.BasicHttpBinding(), NewEndPoint);
HTTP で EndPoint を使用すると、上記のコードは機能しますが、HTTPS アドレスを使用しようとすると、次のエラーが表示 されます。「http」が必要です。パラメータ名:経由
HHTPS エンドポイントを使用するにはどうすればよいですか?