Created On:  21 March 2012

Problem:

Is it possible to set several projects active simultaneously via the SilkCentral Test Manager web services?

Resolution:

It is possible to activate one or more SilkCentral Test Manager projects via the sccentities web service, in the example below projects
with the id 7 and 8 are activated via this call:
 
public static void ActiveateProject (long lSession){
           try{
                                    
           SccentitiesSoapBindingStub sccEnt2 = new SccentitiesSoapBindingStub(new URL
("http://mysctmserver:19120/services/sccentities?wsdl "), new org.apache.axis.client.Service());
                      
           sccEnt2.setTimeout(60000);
                      
           int[] projectsToActivate = new int[] {7,8};
           sccEnt2.activateProjects(lSession,projectsToActivate);
                      
           }
           catch(Exception e){
                e.printStackTrace();
           }                            
 }