![]() |
#3 |
Участник
|
Код: CrmAuthenticationToken token = new CrmAuthenticationToken(); token.OrganizationName = sOrgan; token.AuthenticationType = 0; //Create the Service CrmService crmService = new CrmService(); crmService.Credentials = System.Net.CredentialCache.DefaultCredentials; crmService.PreAuthenticate = false; crmService.CrmAuthenticationTokenValue = token; crmService.Url = (string)(Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\MSCRM").GetValue("ServerUrl")) + "/2007/crmservice.asmx"; |
|