public static AcadreServiceV7.ConfigurationService7 GetConfigurationService7() { if (configurationService7 == null) { configurationService7 = new AcadreServiceV7.ConfigurationService7(Properties.Settings.Default.AcadrePWS_AcadreServiceV7_AcadreServiceV7); ConfigureService(configurationService7); } return(configurationService7); }
public AcadreService(string Acadre_baseurlPWI, string Acadre_urlPWS, string Acadre_username, string Acadre_password, string Acadre_domain, string Acadre_actingForUsername, string CPRBroker_EndpointURL, string CPRBroker_UserToken, string CPRBroker_ApplicationToken) { Acadre.PWSHeaderExtension.User = Acadre_actingForUsername; System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential(Acadre_username, Acadre_password, Acadre_domain); caseService = new AcadreServiceV7.CaseService7 { Credentials = networkCredential, Url = Acadre_urlPWS }; contactService = new AcadreServiceV7.ContactService7 { Credentials = networkCredential, Url = Acadre_urlPWS }; configurationService = new AcadreServiceV7.ConfigurationService7 { Credentials = networkCredential, Url = Acadre_urlPWS }; documentService = new AcadreServiceV7.MainDocumentService7 { Credentials = networkCredential, Url = Acadre_urlPWS }; memoService = new AcadreServiceV7.MemoService7 { Credentials = networkCredential, Url = Acadre_urlPWS }; documentService4 = new AcadreServiceV4.DocumentService4 { Credentials = networkCredential, Url = Acadre_urlPWS.Replace("7.asmx", "4.asmx") }; memoService4 = new AcadreServiceV4.MemoService4 { Credentials = networkCredential, Url = Acadre_urlPWS.Replace("7.asmx", "4.asmx") }; caseService4 = new AcadreServiceV4.CaseService4 { Credentials = networkCredential, Url = Acadre_urlPWS.Replace("7.asmx", "4.asmx") }; CPRBrokerService = new CPRBrokerService(CPRBroker_EndpointURL, CPRBroker_UserToken, CPRBroker_ApplicationToken); PWIservice = new AcadrePWI.Acadre.AcadrePWIservice(Acadre_baseurlPWI, Acadre_username, Acadre_password); }