私はWCFを初めて使用しますが、Webサービス(ASMXファイル)に少し精通しています。
wcfクライアントの構成エントリについていくつか質問があります
Webサービス(ASMX)プロキシを作成すると、以下のエントリのように構成ファイルに何も追加されませんが、WCFの場合は以下のエントリが追加されます。以下のエントリの重要性を知る必要があります。
1)以下のエントリを削除すると、どうなりますか?クライアント側からサービスを呼び出すことはできませんか?
2)クライアント側からWebサービスを呼び出すときに教えてください。クライアント側に複数のエンドポイントアドレスが追加されている場合、サービスの呼び出しに使用するエンドポイントアドレスをどのように言うのですか?
3)サービスコールを行うときに、cient側からWebサービスのURLを明示的に指定するにはどうすればよいですか?
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_ICommService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:00:05"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/CommService/"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ICommService"
contract="Services.ICommService" name="WSDualHttpBinding_ICommService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>