Created On:  21 March 2012

Problem:

Is it possible to return a list of all projects in SilkCentral Test Manager with their id and status via the SilkCentral Test Manager web Services?

Resolution:

The below example returns a list of all projects within SilkCentral Test Manager with their corresponding id an with their status stating whether they are active or not:

 
public void printProjectDetails (long SessionID)
       {
          Project[] listofProjects = new Project[2];
          try{
                SccentitiesSoapBindingStub SccEntBind = (SccentitiesSoapBindingStub) new MainEntitiesServiceLocator
().getsccentities();
                listofProjects = SccEntBind.getProjects(SessionID);
                for (Project project : listofProjects) {
                   System.out.println(project.getName() " : " project.getId() " : " project.isActive());
                 }
             }
             catch(Exception e){
                  e.printStackTrace();
             }
        }