2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package uk.ac.ebi.www.picr.AccessionMappingService;
\r
21 public class AccessionMapperBindingStub extends org.apache.axis.client.Stub
\r
23 uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface
\r
25 private java.util.Vector cachedSerClasses = new java.util.Vector();
\r
27 private java.util.Vector cachedSerQNames = new java.util.Vector();
\r
29 private java.util.Vector cachedSerFactories = new java.util.Vector();
\r
31 private java.util.Vector cachedDeserFactories = new java.util.Vector();
\r
33 static org.apache.axis.description.OperationDesc[] _operations;
\r
37 _operations = new org.apache.axis.description.OperationDesc[3];
\r
38 _initOperationDesc1();
\r
41 private static void _initOperationDesc1()
\r
43 org.apache.axis.description.OperationDesc oper;
\r
44 oper = new org.apache.axis.description.OperationDesc();
\r
45 oper.setName("getUPIForSequence");
\r
47 new javax.xml.namespace.QName(
\r
48 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
49 "sequence"), new javax.xml.namespace.QName(
\r
50 "http://www.w3.org/2001/XMLSchema", "string"),
\r
51 java.lang.String.class,
\r
52 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
53 oper.addParameter(new javax.xml.namespace.QName(
\r
54 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
55 "searchDatabases"), new javax.xml.namespace.QName(
\r
56 "http://www.w3.org/2001/XMLSchema", "string"),
\r
57 java.lang.String[].class,
\r
58 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
60 new javax.xml.namespace.QName(
\r
61 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
62 "taxonId"), new javax.xml.namespace.QName(
\r
63 "http://www.w3.org/2001/XMLSchema", "string"),
\r
64 java.lang.String.class,
\r
65 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
66 oper.addParameter(new javax.xml.namespace.QName(
\r
67 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
68 "onlyActive"), new javax.xml.namespace.QName(
\r
69 "http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class,
\r
70 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
71 oper.setReturnType(new javax.xml.namespace.QName(
\r
72 "http://model.picr.ebi.ac.uk", "UPEntry"));
\r
73 oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry.class);
\r
74 oper.setReturnQName(new javax.xml.namespace.QName(
\r
75 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
76 "getUPIForSequenceReturn"));
\r
77 oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
\r
78 oper.setUse(org.apache.axis.constants.Use.LITERAL);
\r
79 _operations[0] = oper;
\r
81 oper = new org.apache.axis.description.OperationDesc();
\r
82 oper.setName("getUPIForAccession");
\r
83 oper.addParameter(new javax.xml.namespace.QName(
\r
84 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
85 "accession"), new javax.xml.namespace.QName(
\r
86 "http://www.w3.org/2001/XMLSchema", "string"),
\r
87 java.lang.String.class,
\r
88 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
89 oper.addParameter(new javax.xml.namespace.QName(
\r
90 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
91 "ac_version"), new javax.xml.namespace.QName(
\r
92 "http://www.w3.org/2001/XMLSchema", "string"),
\r
93 java.lang.String.class,
\r
94 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
95 oper.addParameter(new javax.xml.namespace.QName(
\r
96 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
97 "searchDatabases"), new javax.xml.namespace.QName(
\r
98 "http://www.w3.org/2001/XMLSchema", "string"),
\r
99 java.lang.String[].class,
\r
100 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
102 new javax.xml.namespace.QName(
\r
103 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
104 "taxonId"), new javax.xml.namespace.QName(
\r
105 "http://www.w3.org/2001/XMLSchema", "string"),
\r
106 java.lang.String.class,
\r
107 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
108 oper.addParameter(new javax.xml.namespace.QName(
\r
109 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
110 "onlyActive"), new javax.xml.namespace.QName(
\r
111 "http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class,
\r
112 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
113 oper.setReturnType(new javax.xml.namespace.QName(
\r
114 "http://model.picr.ebi.ac.uk", "UPEntry"));
\r
115 oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry[].class);
\r
116 oper.setReturnQName(new javax.xml.namespace.QName(
\r
117 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
118 "getUPIForAccessionReturn"));
\r
119 oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
\r
120 oper.setUse(org.apache.axis.constants.Use.LITERAL);
\r
121 _operations[1] = oper;
\r
123 oper = new org.apache.axis.description.OperationDesc();
\r
124 oper.setName("getMappedDatabaseNames");
\r
125 oper.setReturnType(new javax.xml.namespace.QName(
\r
126 "http://www.w3.org/2001/XMLSchema", "string"));
\r
127 oper.setReturnClass(java.lang.String[].class);
\r
128 oper.setReturnQName(new javax.xml.namespace.QName(
\r
129 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
130 "mappedDatabases"));
\r
131 oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
\r
132 oper.setUse(org.apache.axis.constants.Use.LITERAL);
\r
133 _operations[2] = oper;
\r
137 public AccessionMapperBindingStub() throws org.apache.axis.AxisFault
\r
142 public AccessionMapperBindingStub(java.net.URL endpointURL,
\r
143 javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
\r
146 super.cachedEndpoint = endpointURL;
\r
149 public AccessionMapperBindingStub(javax.xml.rpc.Service service)
\r
150 throws org.apache.axis.AxisFault
\r
152 if (service == null)
\r
154 super.service = new org.apache.axis.client.Service();
\r
158 super.service = service;
\r
160 java.lang.Class cls;
\r
161 javax.xml.namespace.QName qName;
\r
162 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
\r
163 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
\r
164 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
\r
165 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
\r
166 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
\r
167 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
\r
168 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
\r
169 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
\r
170 java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
\r
171 java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
\r
172 qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk",
\r
174 cachedSerQNames.add(qName);
\r
175 cls = uk.ac.ebi.picr.model.UPEntry.class;
\r
176 cachedSerClasses.add(cls);
\r
177 cachedSerFactories.add(beansf);
\r
178 cachedDeserFactories.add(beandf);
\r
180 qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk",
\r
182 cachedSerQNames.add(qName);
\r
183 cls = uk.ac.ebi.picr.model.CrossReference.class;
\r
184 cachedSerClasses.add(cls);
\r
185 cachedSerFactories.add(beansf);
\r
186 cachedDeserFactories.add(beandf);
\r
190 protected org.apache.axis.client.Call createCall()
\r
191 throws java.rmi.RemoteException
\r
195 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
\r
197 if (super.maintainSessionSet)
\r
199 _call.setMaintainSession(super.maintainSession);
\r
201 if (super.cachedUsername != null)
\r
203 _call.setUsername(super.cachedUsername);
\r
205 if (super.cachedPassword != null)
\r
207 _call.setPassword(super.cachedPassword);
\r
209 if (super.cachedEndpoint != null)
\r
211 _call.setTargetEndpointAddress(super.cachedEndpoint);
\r
213 if (super.cachedTimeout != null)
\r
215 _call.setTimeout(super.cachedTimeout);
\r
217 if (super.cachedPortName != null)
\r
219 _call.setPortName(super.cachedPortName);
\r
221 java.util.Enumeration keys = super.cachedProperties.keys();
\r
222 while (keys.hasMoreElements())
\r
224 java.lang.String key = (java.lang.String) keys.nextElement();
\r
225 _call.setProperty(key, super.cachedProperties.get(key));
\r
227 // All the type mapping information is registered
\r
228 // when the first call is made.
\r
229 // The type mapping information is actually registered in
\r
230 // the TypeMappingRegistry of the service, which
\r
231 // is the reason why registration is only needed for the first call.
\r
232 synchronized (this)
\r
236 // must set encoding style before registering serializers
\r
237 _call.setEncodingStyle(null);
\r
238 for (int i = 0; i < cachedSerFactories.size(); ++i)
\r
240 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
\r
241 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
\r
243 java.lang.Class sf = (java.lang.Class) cachedSerFactories
\r
245 java.lang.Class df = (java.lang.Class) cachedDeserFactories
\r
247 _call.registerTypeMapping(cls, qName, sf, df, false);
\r
252 } catch (java.lang.Throwable _t)
\r
254 throw new org.apache.axis.AxisFault(
\r
255 "Failure trying to get the Call object", _t);
\r
259 public uk.ac.ebi.picr.model.UPEntry getUPIForSequence(
\r
260 java.lang.String sequence, java.lang.String[] searchDatabases,
\r
261 java.lang.String taxonId, boolean onlyActive)
\r
262 throws java.rmi.RemoteException
\r
264 if (super.cachedEndpoint == null)
\r
266 throw new org.apache.axis.NoEndPointException();
\r
268 org.apache.axis.client.Call _call = createCall();
\r
269 _call.setOperation(_operations[0]);
\r
270 _call.setUseSOAPAction(true);
\r
271 _call.setSOAPActionURI("getUPIForSequence");
\r
272 _call.setEncodingStyle(null);
\r
273 _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
\r
275 _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
\r
278 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
279 _call.setOperationName(new javax.xml.namespace.QName(
\r
280 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
281 "getUPIForSequence"));
\r
283 setRequestHeaders(_call);
\r
284 setAttachments(_call);
\r
285 java.lang.Object _resp = _call
\r
286 .invoke(new java.lang.Object[]
\r
287 { sequence, searchDatabases, taxonId,
\r
288 new java.lang.Boolean(onlyActive) });
\r
290 if (_resp instanceof java.rmi.RemoteException)
\r
292 throw (java.rmi.RemoteException) _resp;
\r
296 extractAttachments(_call);
\r
299 return (uk.ac.ebi.picr.model.UPEntry) _resp;
\r
300 } catch (java.lang.Exception _exception)
\r
302 return (uk.ac.ebi.picr.model.UPEntry) org.apache.axis.utils.JavaUtils
\r
303 .convert(_resp, uk.ac.ebi.picr.model.UPEntry.class);
\r
308 public uk.ac.ebi.picr.model.UPEntry[] getUPIForAccession(
\r
309 java.lang.String accession, java.lang.String ac_version,
\r
310 java.lang.String[] searchDatabases, java.lang.String taxonId,
\r
311 boolean onlyActive) throws java.rmi.RemoteException
\r
313 if (super.cachedEndpoint == null)
\r
315 throw new org.apache.axis.NoEndPointException();
\r
317 org.apache.axis.client.Call _call = createCall();
\r
318 _call.setOperation(_operations[1]);
\r
319 _call.setUseSOAPAction(true);
\r
320 _call.setSOAPActionURI("getUPIForAccession");
\r
321 _call.setEncodingStyle(null);
\r
322 _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
\r
324 _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
\r
327 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
328 _call.setOperationName(new javax.xml.namespace.QName(
\r
329 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
330 "getUPIForAccession"));
\r
332 setRequestHeaders(_call);
\r
333 setAttachments(_call);
\r
334 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
335 { accession, ac_version, searchDatabases, taxonId,
\r
336 new java.lang.Boolean(onlyActive) });
\r
338 if (_resp instanceof java.rmi.RemoteException)
\r
340 throw (java.rmi.RemoteException) _resp;
\r
344 extractAttachments(_call);
\r
347 return (uk.ac.ebi.picr.model.UPEntry[]) _resp;
\r
348 } catch (java.lang.Exception _exception)
\r
350 return (uk.ac.ebi.picr.model.UPEntry[]) org.apache.axis.utils.JavaUtils
\r
351 .convert(_resp, uk.ac.ebi.picr.model.UPEntry[].class);
\r
356 public java.lang.String[] getMappedDatabaseNames()
\r
357 throws java.rmi.RemoteException
\r
359 if (super.cachedEndpoint == null)
\r
361 throw new org.apache.axis.NoEndPointException();
\r
363 org.apache.axis.client.Call _call = createCall();
\r
364 _call.setOperation(_operations[2]);
\r
365 _call.setUseSOAPAction(true);
\r
366 _call.setSOAPActionURI("getMappedDatabaseNames");
\r
367 _call.setEncodingStyle(null);
\r
368 _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
\r
370 _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
\r
373 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
374 _call.setOperationName(new javax.xml.namespace.QName(
\r
375 "http://www.ebi.ac.uk/picr/AccessionMappingService",
\r
376 "getMappedDatabaseNames"));
\r
378 setRequestHeaders(_call);
\r
379 setAttachments(_call);
\r
380 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
383 if (_resp instanceof java.rmi.RemoteException)
\r
385 throw (java.rmi.RemoteException) _resp;
\r
389 extractAttachments(_call);
\r
392 return (java.lang.String[]) _resp;
\r
393 } catch (java.lang.Exception _exception)
\r
395 return (java.lang.String[]) org.apache.axis.utils.JavaUtils
\r
396 .convert(_resp, java.lang.String[].class);
\r