Changeset 6157 for branches/OKBJavaConnector/QueryService/src
- Timestamp:
- 05/07/11 14:24:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/QueryService/src/queryservice/Main.java
r6072 r6157 5 5 package queryservice; 6 6 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;11 7 import java.net.MalformedURLException; 12 8 import java.net.URL; … … 56 52 } 57 53 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 // } 75 71 76 72 /** … … 79 75 public static void main(String[] args) { 80 76 Main test = new Main(); 81 test.GetFiltersTest();77 // test.GetFiltersTest(); 82 78 } 83 79 }
Note: See TracChangeset
for help on using the changeset viewer.