javendan
New Member Posts:5
|
25 Mar 2014 08:41 AM |
|
hi all, I'm trying to modify the example in WebServiceQuickStart document so that instead of looking for a concept code, use a search for a name pattern using the "findConceptsWithNameMatching (String pattern, TConceptSearchOptions options)" method with the standard "Ur *" and the following object definition TConceptSearchOptions options: "TConceptAttributeSetDescriptor TConceptAttributeSetDescriptor attributeSetDescriptor = new (); attributeSetDescriptor.setAllPropertyTypes (true); TConceptSearchOptions TConceptSearchOptions options = new (); options.setAttributeSetDescriptor (attributeSetDescriptor); options.setALLCONTENT (1); " The query returns nothing. What should I do to make the method returns me similar concepts to a given name pattern or to a given setencen pattern with the patology description? Thank you very much to all. regards, |
|
|
|
|
jbowie
Basic Member Posts:110
|
26 Mar 2014 09:46 AM |
|
Jorge, I'm a little confused by the code style. What source code environment are you using? I would question the last line you show. We would expect: options.setContent(TConceptSearchOptions.ALL_CONTENT); Also, you might want to add: options.setLimit(100000); //or some other big number Can you give this a try and get back to us?
|
|
|
|
|
javendan
New Member Posts:5
|
26 Mar 2014 11:04 AM |
|
Hi DiTs, I'm working with Eclipse. Exactly the code I have is: /**INIT CODE**/ DtsQueryDaoService service = new DtsQueryDaoService(); System.out.println("Retrieving the port from the following service: "+ service); DtsQueryDaoWS port = service.getDtsQueryDaoPort(); // Set credentials for JAX-WS. Map<String, Object> requestContext = ((BindingProvider) port).getRequestContext(); requestContext.put(BindingProvider.USERNAME_PROPERTY, userName); requestContext.put(BindingProvider.PASSWORD_PROPERTY, passWord); String conceptCode = "13506-1"; // Urea nitrogen renal clearance int namespaceId = 5102; // LOINC TConceptAttributeSetDescriptor attributeSetDescriptor = new TConceptAttributeSetDescriptor(); attributeSetDescriptor.setAllPropertyTypes(true); TConceptSearchOptions options = new TConceptSearchOptions(); options.setIdContent(TConceptSearchOptions.ALL_CONTENT); options.setAttributeSetDescriptor(attributeSetDescriptor); options.setLimit(100000); List<TOntylogConcept> lConceptos = port.findConceptsWithPropertyMatching(tpt, "*Ur*", options); List<TOntylogConcept> lConceptos2 =port.findConceptsWithNameMatching("Urea*", options); /** END CODE**/ The method "setContent(TConceptSearchOptions.ALL_CONTENT)" is undefined only i can use setContentId(TConceptSearchOptions.ALL_CONTENT), but when i use it, Eclipse show me the error "ALL_CONTENT cannot be resolved or is not a field". I have looked at the TConceptSearchOptions class and has no static constant called "ALL_CONTENT". In the workspace i have all jars from lib folder in Apelon Instalation Directory (in my case "C:\Program Files\Apelon DTS 4.0\lib"). Any idea? Thank you very much for your help. |
|
|
|
|
jbowie
Basic Member Posts:110
|
27 Mar 2014 08:43 AM |
|
Very odd. The source shows a public final static variable. We'll investigate and get back to you. In the interim, you can just use "-1" as the setContent argument. Or, of course, use "5102" for LOINC. |
|
|
|
|
javendan
New Member Posts:5
|
27 Mar 2014 10:25 AM |
|
Now my test example works fine with "-1" as the setContentId argument, so now i can use the pattern for search concepts. Thanks you very much for your help, |
|
|
|
|
sunilsk88
New Member Posts:3
|
19 Jun 2014 02:06 PM |
|
Hi, My DTS server is started and I can see the concept tree. However I am not able to get the wsdl page, I ma getting page not found error. Thanks for the help. |
|
|
|
|
jbowie
Basic Member Posts:110
|
19 Jun 2014 06:14 PM |
|
Can you provide details on your app server and database, e.g. JBoss on Oracle? Please also check out the Troubleshooting section of the Web Services Quick Start Guide. |
|
|
|
|