Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/11 14:24:19 (14 years ago)
Author:
bfarka
Message:

added ecj and custom statistics to communicate with the okb services #1441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKBJavaConnector/QueryService/src/queryservice/Main.java

    r6072 r6157  
    55package queryservice;
    66
    7 import com.heuristiclab.services.query.QueryService;
    8 import com.heuristiclab.services.query.ArrayOfFilter;
    9 import com.heuristiclab.services.query.Filter;
    10 import com.heuristiclab.services.query.IQueryService;
    117import java.net.MalformedURLException;
    128import java.net.URL;
     
    5652    }
    5753
    58     public void GetFiltersTest() {
    59         try {
    60             QueryService srv = new QueryService(new URL("https://services.heuristiclab.com/OKB.SPR.Java-3.3/QueryService.svc?wsdl"));
    61             IQueryService port = srv.getQueryService();
    62 
    63             ArrayOfFilter filters = port.getFilters();
    64             for (Filter filter : filters.getFilter()) {
    65                 System.out.println("filter TypeName:=" + filter.getFilterTypeName().getValue());
    66                 System.out.println("filter Label:=" + filter.getLabel().getValue());
    67                 System.out.println("filter Class:=" + filter.getClass().getName());
    68             }
    69             //assertTrue("No Filters found!", filters.getFilter().size() > 0);
    70             //assertTrue("No Filters found!", filters.getFilter().size() > 0);
    71         } catch (MalformedURLException ex) {
    72             Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    73         }
    74     }
     54//    public void GetFiltersTest() {
     55//        try {
     56//            QueryService srv = new QueryService(new URL("https://services.heuristiclab.com/OKB.SPR.Java-3.3/QueryService.svc?wsdl"));
     57//            IQueryService port = srv.getQueryService();
     58//
     59//            ArrayOfFilter filters = port.getFilters();
     60//            for (Filter filter : filters.getFilter()) {
     61//                System.out.println("filter TypeName:=" + filter.getFilterTypeName().getValue());
     62//                System.out.println("filter Label:=" + filter.getLabel().getValue());
     63//                System.out.println("filter Class:=" + filter.getClass().getName());
     64//            }
     65//            //assertTrue("No Filters found!", filters.getFilter().size() > 0);
     66//            //assertTrue("No Filters found!", filters.getFilter().size() > 0);
     67//        } catch (MalformedURLException ex) {
     68//            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
     69//        }
     70//    }
    7571
    7672    /**
     
    7975    public static void main(String[] args) {
    8076        Main test = new Main();
    81         test.GetFiltersTest();
     77//        test.GetFiltersTest();
    8278    }
    8379}
Note: See TracChangeset for help on using the changeset viewer.