Note that there are some explanatory texts on larger screens.

plurals
  1. POWSHttpBinding binding, client authentication
    text
    copied!<p>i am new to wcf and using wshttpbinding ,but i want to remove the user name and password form the service client (which i have to pass), my client code is </p> <pre><code>RServiceClient serviceClient = new RServiceClient(); serviceClient.ClientCredentials.Windows.ClientCredential.UserName = "UserName"; serviceClient.ClientCredentials.Windows.ClientCredential.Password = "Password"; </code></pre> <p>i dont want to pass this username and password.</p> <p>my client app.config is:</p> <pre><code> &lt;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"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Message"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; </code></pre> <p>rite now service is hosted in a web. is there any change in service.config or client side app .config. in my weak knowledge after googleing is that change should be the client side but i m unable to do that. :-(</p> <p>note: my contract requires sessions too. thanx in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload