ServiceReference1.Service1Client proxy = new ServiceReference1.Service1Client(); proxy.ClientCredentials.UserName.UserName = "Second"; proxy.ClientCredentials.UserName.Password = "Second"; proxy.GetData();
<pre lang="cs">ServiceReference1.Service1Client proxy2 = new ServiceReference1.Service1Client(); proxy.GetData();</pre>
<security mode="TransportWithMessageCredential"> <transport clientCredentialType="None" /> <message clientCredentialType="UserName" /> </security>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)