をWSHttpBinding私のクライアントコードが結合、クライアント認証
RServiceClient serviceClient = new RServiceClient();
serviceClient.ClientCredentials.Windows.ClientCredential.UserName = "UserName";
serviceClient.ClientCredentials.Windows.ClientCredential.Password = "Password";
ある 、(私は渡す必要がある)私は、WCFに新しいとwshttpbindingを使用していますが、私はサービスクライアントを構成するユーザー名とパスワードを削除したいです
私はこのユーザー名とパスワードを渡したくありません。
私のクライアントのapp.configは次のとおりです。
<binding name="WSHttpBinding_IRService"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
bypassProxyOnLocal="false"
transactionFlow="false"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text"
textEncoding="utf-8"
useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32"
maxStringContentLength="8192"
maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<reliableSession ordered="true"
inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
儀式今のサービスは、Webでホストされています。 service.configまたはクライアント側のアプリケーション.configに変更があります。 googleingの後の私の弱い知識の は、変更がクライアント側でなければならないが、私はそれを行うことができないということです。 :-(
注:。。私の契約は、あまりにもセッションを必要と ありがとうを事前に
は私が求めています厥、service.configの変化は何ですか?これは私の設定です。 <行動名= "RServiceBehavior"> serviceBehaviors> <サービスbehaviorConfiguration = "RServiceBehavior" 名前= "EHRService"><エンドポイントアドレス= "" バインディング= "wsHttpBinding" 契約= "ServiceContracts.IRService"> –
user765573