WCF サービスでは、エンドポイント バインディングを wsHttpBinding として設定しています。ただし、Visual Studio を使用してサービス参照を追加すると、クライアントの app.config はバインディングを basicHttpBinding として表示します。なぜこれが起こっているのか誰にも分かりますか?
サービス web.config のマイ エンドポイント (IIS 7.5 でホスト)。baseAddresses からアドレスを取得します
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration="wsHttpServiceBinding"
contract="MyProject.IMyService" />
クライアント app.config:
<client>
<endpoint address="http://example.com/MyService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_MyService"
contract="Service.MyService" name="BasicHttpBinding_MyService" />
</client>