![]() |
#3 |
Участник
|
X++: public static CrmService crmService; crmService = new CrmService(); #region InitService string server = ConfigurationManager.AppSettings["server"]; string organizationName = null; try { organizationName = ConfigurationManager.AppSettings["organization"]; } catch (Exception) { }; crmService.Credentials = new System.Net.NetworkCredential("login", "Password", "domain"); crmService.UseDefaultCredentials = false; CrmAuthenticationToken token = new CrmAuthenticationToken(); token.AuthenticationType = 0; token.OrganizationName = organizationName; crmService.Url = String.Format("http://{0}/MSCRMServices/2007/CrmService.asmx", server); crmService.CrmAuthenticationTokenValue = token; |
|
|
За это сообщение автора поблагодарили: mistah (1). |