Advertisement
alexander_benoit

Pos NTLM Auth

Oct 31st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1.         private static ProcessRequestResponseProcessRequestResult SendRequest(ProcessRequestRequest posRequest, UserModel user)
  2.         {
  3.             using (var pos = new POSProcessingSoapClient("endpoint_configuration_name"))
  4.             {
  5.                 pos.ClientCredentials.Windows.ClientCredential.UserName = user.Name;
  6.                 pos.ClientCredentials.Windows.ClientCredential.Domain = user.Domain;
  7.                 pos.ClientCredentials.Windows.ClientCredential.Password = user.Password;
  8.  
  9.                 return pos.ProcessRequest(posRequest, "org_name");
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement