JChemSearchWS java API example

User 7fb796c624

25-06-2009 19:27:11

Hi,


I've been looking at the ajax ChemAxon Web Service example but I can't find an example that uses JChemSearchWS java class. The ajax example is mostly javascript. Is there one available for java? Also, the JChemSearchWS class when it does a search, the results will be available only when the search is completed right? I ask because if a use JChemSearch class I'm able to get the count of the results even if the search hasn't finished as long as I set the appropiate runMode.


I'm using version 5.2.2 of JChem and Marvin.


Thanks,


Yasel

User c1ce6b3d19

26-06-2009 10:54:52

Yasel,


Yes, the AJAX example uses mostly javascript.  Currently there are no Java client examples for JChem Web Services, but Java is certainly supported for developing Web Service clients.


Currently, The JChemSearchWS class makes the results available only when the search is complete. It does not support the asynchronous progressive run mode, but we plan to incorporate this run mode and the molecule counter in a future release.


If your preferred development language is Java, you may also use Java directly with the JChemSearch class through Java servlets or JSPs.  As you noted, if you use Java classes directly, you may use the asynchronous progressive run mode.


For a JSP example see the second example: http://www.chemaxon.com/jchem/examples.html


For sample web architecture see:  http://www.chemaxon.com/jchem/doc/guide/dbconcepts/index.html#architecture


Jon