|PubMed | Entrez | Structure | PubChem | Help|
PUG SOAP with Java and Axis
These examples were created to work with Java classes generated by Axis 1.4. With Axis installed, set CLASSPATH to something like what's shown below, although the details will depend on your Java installation platform and local file paths. The CLASSPATH needs to contain these Axis .jar files (or they can be supplied on the command line):
With that, the command:
java org.apache.axis.wsdl.WSDL2Java 'http://pubchem.ncbi.nlm.nih.gov/pug_soap/pug_soap.cgi?wsdl'
will generate Java source code that provides the interface to PUG SOAP. (See the Axis documentation for more details.) Then use your favorite Java development environment to compile the Axis-generated code and the samples below into working applications, which will also need the Axis .jar libraries at run-time.
These samples were developed and tested with JDK SE 6 (update 7), but they should also work with earlier versions. Note that some of these save or read information in files on disk, so paths will need to be adjusted for the local filesystem.
|Write to Helpdesk | Disclaimer | Privacy statement | Accessibility|