Entrez WebService for NCBI
creating client stubs for NCBI-services
Generating the client stubs for the NCBI web service:
To generate the client stubs for the NCBI webservice, you can use the Axis API. But you have to use the final version 1.2 of the API. In case you use the older version you ll get problems with generated Java Classes - they contain Java keywords - which makes it unpossible to use them.
Snipped of the ant build file:
<taskdef
classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask" <-- requiered Task
name="wsdl2java">
<classpath refid="classpath.server"/>
</taskdef>
....
<wsdl2java
url="http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl"
output="${gendir}"
deployscope="Application"
serverSide="false"
skeletonDeploy="true"
timeout="-1"
noimports="false"
verbose="false"
testcase="true"
debug="false">
... mapping information - to map the namespaces to a "real" package name.
<mappingset>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/einfo" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e1"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/elink" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e2"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/esearch" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e3"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/esummary" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e4"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/efetch" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e5"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/egquery" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e6"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils" package="edu.ucdavis.setupX.core.communication.ncbi.remote"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/elink" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e2"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/esearch" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e3"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/esummary" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e4"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/efetch" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e5"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils/egquery" package="edu.ucdavis.setupX.core.communication.ncbi.remote.e6"/>
<mapping namespace="http://www.ncbi.nlm.nih.gov/soap/eutils" package="edu.ucdavis.setupX.core.communication.ncbi.remote"/>
</wsdl2java>
http://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html
Created by
scholz
Last modified 2005-06-20 03:53 PM
Last modified 2005-06-20 03:53 PM