648 lines
35 KiB
Java
648 lines
35 KiB
Java
/**
|
|
* AphiaNameServiceBindingStub.java
|
|
*
|
|
* This file was auto-generated from WSDL
|
|
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
|
|
*/
|
|
|
|
package aphia.v1_0.worms;
|
|
|
|
public class AphiaNameServiceBindingStub extends org.apache.axis.client.Stub implements aphia.v1_0.worms.AphiaNameServicePortType {
|
|
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
|
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
|
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
|
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
|
|
|
static org.apache.axis.description.OperationDesc [] _operations;
|
|
|
|
static {
|
|
_operations = new org.apache.axis.description.OperationDesc[12];
|
|
_initOperationDesc1();
|
|
_initOperationDesc2();
|
|
}
|
|
|
|
private static void _initOperationDesc1(){
|
|
org.apache.axis.description.OperationDesc oper;
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "scientificname"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
oper.setReturnClass(int.class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[0] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaRecords");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "scientificname"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "fuzzy"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[1] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaNameByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
oper.setReturnClass(java.lang.String.class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[2] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaRecordByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord.class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[3] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaRecordByTSN");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "TSN"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord.class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[4] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaRecordsByNames");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "scientificnames"), new javax.xml.namespace.QName("http://aphia/v1.0", "scientificnames"), java.lang.String[].class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "fuzzy"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaMatches"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[][].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[5] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaRecordsByVernacular");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "vernacular"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[6] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaClassificationByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
|
|
oper.setReturnClass(aphia.v1_0.worms.Classification.class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[7] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getSourcesByAphiaID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Sources"));
|
|
oper.setReturnClass(aphia.v1_0.worms.Source[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[8] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaSynonymsByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[9] = oper;
|
|
|
|
}
|
|
|
|
private static void _initOperationDesc2(){
|
|
org.apache.axis.description.OperationDesc oper;
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaVernacularsByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Vernaculars"));
|
|
oper.setReturnClass(aphia.v1_0.worms.Vernacular[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[10] = oper;
|
|
|
|
oper = new org.apache.axis.description.OperationDesc();
|
|
oper.setName("getAphiaChildrenByID");
|
|
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
|
|
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
|
|
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
|
|
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
|
|
oper.setStyle(org.apache.axis.constants.Style.RPC);
|
|
oper.setUse(org.apache.axis.constants.Use.ENCODED);
|
|
_operations[11] = oper;
|
|
|
|
}
|
|
|
|
public AphiaNameServiceBindingStub() throws org.apache.axis.AxisFault {
|
|
this(null);
|
|
}
|
|
|
|
public AphiaNameServiceBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
|
this(service);
|
|
super.cachedEndpoint = endpointURL;
|
|
}
|
|
|
|
public AphiaNameServiceBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
|
if (service == null) {
|
|
super.service = new org.apache.axis.client.Service();
|
|
} else {
|
|
super.service = service;
|
|
}
|
|
java.lang.Class cls;
|
|
javax.xml.namespace.QName qName;
|
|
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
|
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
|
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
|
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
|
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
|
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
|
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
|
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
|
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
|
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Sources");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.Source[].class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(arraysf);
|
|
cachedDeserFactories.add(arraydf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.AphiaRecord[].class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(arraysf);
|
|
cachedDeserFactories.add(arraydf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Source");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.Source.class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(beansf);
|
|
cachedDeserFactories.add(beandf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Vernacular");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.Vernacular.class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(beansf);
|
|
cachedDeserFactories.add(beandf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Vernaculars");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.Vernacular[].class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(arraysf);
|
|
cachedDeserFactories.add(arraydf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.AphiaRecord.class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(beansf);
|
|
cachedDeserFactories.add(beandf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Classification");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.Classification.class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(beansf);
|
|
cachedDeserFactories.add(beandf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "scientificnames");
|
|
cachedSerQNames.add(qName);
|
|
cls = java.lang.String[].class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(arraysf);
|
|
cachedDeserFactories.add(arraydf);
|
|
|
|
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaMatches");
|
|
cachedSerQNames.add(qName);
|
|
cls = aphia.v1_0.worms.AphiaRecord[][].class;
|
|
cachedSerClasses.add(cls);
|
|
cachedSerFactories.add(arraysf);
|
|
cachedDeserFactories.add(arraydf);
|
|
|
|
}
|
|
|
|
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
|
try {
|
|
org.apache.axis.client.Call _call =
|
|
(org.apache.axis.client.Call) super.service.createCall();
|
|
if (super.maintainSessionSet) {
|
|
_call.setMaintainSession(super.maintainSession);
|
|
}
|
|
if (super.cachedUsername != null) {
|
|
_call.setUsername(super.cachedUsername);
|
|
}
|
|
if (super.cachedPassword != null) {
|
|
_call.setPassword(super.cachedPassword);
|
|
}
|
|
if (super.cachedEndpoint != null) {
|
|
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
|
}
|
|
if (super.cachedTimeout != null) {
|
|
_call.setTimeout(super.cachedTimeout);
|
|
}
|
|
if (super.cachedPortName != null) {
|
|
_call.setPortName(super.cachedPortName);
|
|
}
|
|
java.util.Enumeration keys = super.cachedProperties.keys();
|
|
while (keys.hasMoreElements()) {
|
|
java.lang.String key = (java.lang.String) keys.nextElement();
|
|
_call.setProperty(key, super.cachedProperties.get(key));
|
|
}
|
|
// All the type mapping information is registered
|
|
// when the first call is made.
|
|
// The type mapping information is actually registered in
|
|
// the TypeMappingRegistry of the service, which
|
|
// is the reason why registration is only needed for the first call.
|
|
synchronized (this) {
|
|
if (firstCall()) {
|
|
// must set encoding style before registering serializers
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
|
|
for (int i = 0; i < cachedSerFactories.size(); ++i) {
|
|
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
|
|
javax.xml.namespace.QName qName =
|
|
(javax.xml.namespace.QName) cachedSerQNames.get(i);
|
|
java.lang.Class sf = (java.lang.Class)
|
|
cachedSerFactories.get(i);
|
|
java.lang.Class df = (java.lang.Class)
|
|
cachedDeserFactories.get(i);
|
|
_call.registerTypeMapping(cls, qName, sf, df, false);
|
|
}
|
|
}
|
|
}
|
|
return _call;
|
|
}
|
|
catch (java.lang.Throwable _t) {
|
|
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
|
}
|
|
}
|
|
|
|
public int getAphiaID(java.lang.String scientificname, boolean marine_only) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[0]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaID", "getAphiaID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificname, new java.lang.Boolean(marine_only)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return ((java.lang.Integer) _resp).intValue();
|
|
} catch (java.lang.Exception _exception) {
|
|
return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecords(java.lang.String scientificname, boolean like, boolean fuzzy, boolean marine_only, int offset) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[1]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaRecords");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaRecords"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificname, new java.lang.Boolean(like), new java.lang.Boolean(fuzzy), new java.lang.Boolean(marine_only), new java.lang.Integer(offset)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public java.lang.String getAphiaNameByID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[2]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaNameByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaName", "getAphiaNameByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (java.lang.String) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[3]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaRecordByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecord", "getAphiaRecordByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord.class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByTSN(int TSN) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[4]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaRecordByTSN");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecord", "getAphiaRecordByTSN"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(TSN)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord.class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord[][] getAphiaRecordsByNames(java.lang.String[] scientificnames, boolean like, boolean fuzzy, boolean marine_only) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[5]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaRecordsByNames");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaMatches", "getAphiaRecordsByNames"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificnames, new java.lang.Boolean(like), new java.lang.Boolean(fuzzy), new java.lang.Boolean(marine_only)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord[][]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord[][]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[][].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecordsByVernacular(java.lang.String vernacular, boolean like, int offset) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[6]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaRecordsByVernacular");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaRecordsByVernacular"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {vernacular, new java.lang.Boolean(like), new java.lang.Integer(offset)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.Classification getAphiaClassificationByID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[7]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaClassificationByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/Classification", "getAphiaClassificationByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.Classification) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.Classification) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Classification.class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.Source[] getSourcesByAphiaID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[8]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getSourcesByAphiaID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/Sources", "getSourcesByAphiaID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.Source[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.Source[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Source[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord[] getAphiaSynonymsByID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[9]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaSynonymsByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaSynonymsByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.Vernacular[] getAphiaVernacularsByID(int aphiaID) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[10]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaVernacularsByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaVernaculars", "getAphiaVernacularsByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.Vernacular[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.Vernacular[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Vernacular[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
public aphia.v1_0.worms.AphiaRecord[] getAphiaChildrenByID(int aphiaID, int offset) throws java.rmi.RemoteException {
|
|
if (super.cachedEndpoint == null) {
|
|
throw new org.apache.axis.NoEndPointException();
|
|
}
|
|
org.apache.axis.client.Call _call = createCall();
|
|
_call.setOperation(_operations[11]);
|
|
_call.setUseSOAPAction(true);
|
|
//_call.setSOAPActionURI("getAphiaChildrenByID");
|
|
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
|
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaChildrenByID"));
|
|
|
|
setRequestHeaders(_call);
|
|
setAttachments(_call);
|
|
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID), new java.lang.Integer(offset)});
|
|
|
|
if (_resp instanceof java.rmi.RemoteException) {
|
|
throw (java.rmi.RemoteException)_resp;
|
|
}
|
|
else {
|
|
extractAttachments(_call);
|
|
try {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
|
|
} catch (java.lang.Exception _exception) {
|
|
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|