Exemple #1
0
 public static AcadreServiceV7.ContactService7 GetContactService7()
 {
     if (contactService7 == null)
     {
         contactService7 = new AcadreServiceV7.ContactService7(Properties.Settings.Default.AcadrePWS_AcadreServiceV7_AcadreServiceV7);
         ConfigureService(contactService7);
     }
     return(contactService7);
 }
 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);
 }