2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
\r
3 * Copyright (C) 2008 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
21 public class SeqSearchServiceSoapBindingStub extends
\r
22 org.apache.axis.client.Stub implements ext.vamsas.SeqSearchI
\r
24 private java.util.Vector cachedSerClasses = new java.util.Vector();
\r
26 private java.util.Vector cachedSerQNames = new java.util.Vector();
\r
28 private java.util.Vector cachedSerFactories = new java.util.Vector();
\r
30 private java.util.Vector cachedDeserFactories = new java.util.Vector();
\r
32 static org.apache.axis.description.OperationDesc[] _operations;
\r
36 _operations = new org.apache.axis.description.OperationDesc[5];
\r
37 _initOperationDesc1();
\r
40 private static void _initOperationDesc1()
\r
42 org.apache.axis.description.OperationDesc oper;
\r
43 oper = new org.apache.axis.description.OperationDesc();
\r
44 oper.setName("getDatabase");
\r
45 oper.setReturnType(new javax.xml.namespace.QName(
\r
46 "http://www.w3.org/2001/XMLSchema", "string"));
\r
47 oper.setReturnClass(java.lang.String.class);
\r
48 oper.setReturnQName(new javax.xml.namespace.QName("",
\r
49 "getDatabaseReturn"));
\r
50 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
51 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
52 _operations[0] = oper;
\r
54 oper = new org.apache.axis.description.OperationDesc();
\r
55 oper.setName("getResult");
\r
56 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
\r
57 new javax.xml.namespace.QName(
\r
58 "http://www.w3.org/2001/XMLSchema", "string"),
\r
59 java.lang.String.class,
\r
60 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
61 oper.setReturnType(new javax.xml.namespace.QName(
\r
62 "simple.objects.vamsas", "SeqSearchResult"));
\r
63 oper.setReturnClass(vamsas.objects.simple.SeqSearchResult.class);
\r
65 .setReturnQName(new javax.xml.namespace.QName("",
\r
66 "getResultReturn"));
\r
67 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
68 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
69 _operations[1] = oper;
\r
71 oper = new org.apache.axis.description.OperationDesc();
\r
72 oper.setName("psearch");
\r
73 oper.addParameter(new javax.xml.namespace.QName("", "al"),
\r
74 new javax.xml.namespace.QName("simple.objects.vamsas",
\r
75 "Alignment"), vamsas.objects.simple.Alignment.class,
\r
76 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
77 oper.addParameter(new javax.xml.namespace.QName("", "database"),
\r
78 new javax.xml.namespace.QName(
\r
79 "http://www.w3.org/2001/XMLSchema", "string"),
\r
80 java.lang.String.class,
\r
81 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
82 oper.setReturnType(new javax.xml.namespace.QName(
\r
83 "simple.objects.vamsas", "WsJobId"));
\r
84 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
85 oper.setReturnQName(new javax.xml.namespace.QName("", "psearchReturn"));
\r
86 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
87 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
88 _operations[2] = oper;
\r
90 oper = new org.apache.axis.description.OperationDesc();
\r
91 oper.setName("search");
\r
92 oper.addParameter(new javax.xml.namespace.QName("", "s"),
\r
93 new javax.xml.namespace.QName("simple.objects.vamsas",
\r
94 "Sequence"), vamsas.objects.simple.Sequence.class,
\r
95 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
96 oper.addParameter(new javax.xml.namespace.QName("", "database"),
\r
97 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
101 oper.setReturnType(new javax.xml.namespace.QName(
\r
102 "simple.objects.vamsas", "WsJobId"));
\r
103 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
104 oper.setReturnQName(new javax.xml.namespace.QName("", "searchReturn"));
\r
105 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
106 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
107 _operations[3] = oper;
\r
109 oper = new org.apache.axis.description.OperationDesc();
\r
110 oper.setName("cancel");
\r
111 oper.addParameter(new javax.xml.namespace.QName("", "jobId"),
\r
112 new javax.xml.namespace.QName(
\r
113 "http://www.w3.org/2001/XMLSchema", "string"),
\r
114 java.lang.String.class,
\r
115 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
116 oper.setReturnType(new javax.xml.namespace.QName(
\r
117 "simple.objects.vamsas", "WsJobId"));
\r
118 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
119 oper.setReturnQName(new javax.xml.namespace.QName("", "cancelReturn"));
\r
120 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
121 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
122 _operations[4] = oper;
\r
126 public SeqSearchServiceSoapBindingStub() throws org.apache.axis.AxisFault
\r
131 public SeqSearchServiceSoapBindingStub(java.net.URL endpointURL,
\r
132 javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
\r
135 super.cachedEndpoint = endpointURL;
\r
138 public SeqSearchServiceSoapBindingStub(javax.xml.rpc.Service service)
\r
139 throws org.apache.axis.AxisFault
\r
141 if (service == null)
\r
143 super.service = new org.apache.axis.client.Service();
\r
147 super.service = service;
\r
149 java.lang.Class cls;
\r
150 javax.xml.namespace.QName qName;
\r
151 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
\r
152 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
\r
153 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
\r
154 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
\r
155 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
\r
156 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
\r
157 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
\r
158 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
\r
159 java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
\r
160 java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
\r
161 qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");
\r
162 cachedSerQNames.add(qName);
\r
163 cls = vamsas.objects.simple.Result.class;
\r
164 cachedSerClasses.add(cls);
\r
165 cachedSerFactories.add(beansf);
\r
166 cachedDeserFactories.add(beandf);
\r
168 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
170 cachedSerQNames.add(qName);
\r
171 cls = vamsas.objects.simple.WsJobId.class;
\r
172 cachedSerClasses.add(cls);
\r
173 cachedSerFactories.add(beansf);
\r
174 cachedDeserFactories.add(beandf);
\r
176 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
\r
178 cachedSerQNames.add(qName);
\r
179 cls = vamsas.objects.simple.Object.class;
\r
180 cachedSerClasses.add(cls);
\r
181 cachedSerFactories.add(beansf);
\r
182 cachedDeserFactories.add(beandf);
\r
184 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_xsd_string");
\r
185 cachedSerQNames.add(qName);
\r
186 cls = java.lang.String[].class;
\r
187 cachedSerClasses.add(cls);
\r
188 cachedSerFactories.add(arraysf);
\r
189 cachedDeserFactories.add(arraydf);
\r
191 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
193 cachedSerQNames.add(qName);
\r
194 cls = vamsas.objects.simple.Alignment.class;
\r
195 cachedSerClasses.add(cls);
\r
196 cachedSerFactories.add(beansf);
\r
197 cachedDeserFactories.add(beandf);
\r
199 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
201 cachedSerQNames.add(qName);
\r
202 cls = vamsas.objects.simple.Sequence.class;
\r
203 cachedSerClasses.add(cls);
\r
204 cachedSerFactories.add(beansf);
\r
205 cachedDeserFactories.add(beandf);
\r
207 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_tns1_Sequence");
\r
208 cachedSerQNames.add(qName);
\r
209 cls = vamsas.objects.simple.Sequence[].class;
\r
210 cachedSerClasses.add(cls);
\r
211 cachedSerFactories.add(arraysf);
\r
212 cachedDeserFactories.add(arraydf);
\r
214 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
215 "SeqSearchResult");
\r
216 cachedSerQNames.add(qName);
\r
217 cls = vamsas.objects.simple.SeqSearchResult.class;
\r
218 cachedSerClasses.add(cls);
\r
219 cachedSerFactories.add(beansf);
\r
220 cachedDeserFactories.add(beandf);
\r
222 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
224 cachedSerQNames.add(qName);
\r
225 cls = vamsas.objects.simple.SequenceSet.class;
\r
226 cachedSerClasses.add(cls);
\r
227 cachedSerFactories.add(beansf);
\r
228 cachedDeserFactories.add(beandf);
\r
232 protected org.apache.axis.client.Call createCall()
\r
233 throws java.rmi.RemoteException
\r
237 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
\r
239 if (super.maintainSessionSet)
\r
241 _call.setMaintainSession(super.maintainSession);
\r
243 if (super.cachedUsername != null)
\r
245 _call.setUsername(super.cachedUsername);
\r
247 if (super.cachedPassword != null)
\r
249 _call.setPassword(super.cachedPassword);
\r
251 if (super.cachedEndpoint != null)
\r
253 _call.setTargetEndpointAddress(super.cachedEndpoint);
\r
255 if (super.cachedTimeout != null)
\r
257 _call.setTimeout(super.cachedTimeout);
\r
259 if (super.cachedPortName != null)
\r
261 _call.setPortName(super.cachedPortName);
\r
263 java.util.Enumeration keys = super.cachedProperties.keys();
\r
264 while (keys.hasMoreElements())
\r
266 java.lang.String key = (java.lang.String) keys.nextElement();
\r
267 _call.setProperty(key, super.cachedProperties.get(key));
\r
269 // All the type mapping information is registered
\r
270 // when the first call is made.
\r
271 // The type mapping information is actually registered in
\r
272 // the TypeMappingRegistry of the service, which
\r
273 // is the reason why registration is only needed for the first call.
\r
274 synchronized (this)
\r
278 // must set encoding style before registering serializers
\r
280 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
281 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
\r
282 for (int i = 0; i < cachedSerFactories.size(); ++i)
\r
284 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
\r
285 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
\r
287 java.lang.Class sf = (java.lang.Class) cachedSerFactories
\r
289 java.lang.Class df = (java.lang.Class) cachedDeserFactories
\r
291 _call.registerTypeMapping(cls, qName, sf, df, false);
\r
296 } catch (java.lang.Throwable _t)
\r
298 throw new org.apache.axis.AxisFault(
\r
299 "Failure trying to get the Call object", _t);
\r
303 public java.lang.String getDatabase() throws java.rmi.RemoteException
\r
305 if (super.cachedEndpoint == null)
\r
307 throw new org.apache.axis.NoEndPointException();
\r
309 org.apache.axis.client.Call _call = createCall();
\r
310 _call.setOperation(_operations[0]);
\r
311 _call.setUseSOAPAction(true);
\r
312 _call.setSOAPActionURI("");
\r
314 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
315 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
318 setRequestHeaders(_call);
\r
319 setAttachments(_call);
\r
320 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
323 if (_resp instanceof java.rmi.RemoteException)
\r
325 throw (java.rmi.RemoteException) _resp;
\r
329 extractAttachments(_call);
\r
332 return (java.lang.String) _resp;
\r
333 } catch (java.lang.Exception _exception)
\r
335 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
\r
336 _resp, java.lang.String.class);
\r
341 public vamsas.objects.simple.SeqSearchResult getResult(
\r
342 java.lang.String job_id) throws java.rmi.RemoteException
\r
344 if (super.cachedEndpoint == null)
\r
346 throw new org.apache.axis.NoEndPointException();
\r
348 org.apache.axis.client.Call _call = createCall();
\r
349 _call.setOperation(_operations[1]);
\r
350 _call.setUseSOAPAction(true);
\r
351 _call.setSOAPActionURI("");
\r
353 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
354 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
357 setRequestHeaders(_call);
\r
358 setAttachments(_call);
\r
359 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
362 if (_resp instanceof java.rmi.RemoteException)
\r
364 throw (java.rmi.RemoteException) _resp;
\r
368 extractAttachments(_call);
\r
371 return (vamsas.objects.simple.SeqSearchResult) _resp;
\r
372 } catch (java.lang.Exception _exception)
\r
374 return (vamsas.objects.simple.SeqSearchResult) org.apache.axis.utils.JavaUtils
\r
375 .convert(_resp, vamsas.objects.simple.SeqSearchResult.class);
\r
380 public vamsas.objects.simple.WsJobId psearch(
\r
381 vamsas.objects.simple.Alignment al, java.lang.String database)
\r
382 throws java.rmi.RemoteException
\r
384 if (super.cachedEndpoint == null)
\r
386 throw new org.apache.axis.NoEndPointException();
\r
388 org.apache.axis.client.Call _call = createCall();
\r
389 _call.setOperation(_operations[2]);
\r
390 _call.setUseSOAPAction(true);
\r
391 _call.setSOAPActionURI("");
\r
393 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
394 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
397 setRequestHeaders(_call);
\r
398 setAttachments(_call);
\r
399 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
402 if (_resp instanceof java.rmi.RemoteException)
\r
404 throw (java.rmi.RemoteException) _resp;
\r
408 extractAttachments(_call);
\r
411 return (vamsas.objects.simple.WsJobId) _resp;
\r
412 } catch (java.lang.Exception _exception)
\r
414 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
415 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r
420 public vamsas.objects.simple.WsJobId search(
\r
421 vamsas.objects.simple.Sequence s, java.lang.String database)
\r
422 throws java.rmi.RemoteException
\r
424 if (super.cachedEndpoint == null)
\r
426 throw new org.apache.axis.NoEndPointException();
\r
428 org.apache.axis.client.Call _call = createCall();
\r
429 _call.setOperation(_operations[3]);
\r
430 _call.setUseSOAPAction(true);
\r
431 _call.setSOAPActionURI("");
\r
433 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
435 .setOperationName(new javax.xml.namespace.QName("vamsas",
\r
438 setRequestHeaders(_call);
\r
439 setAttachments(_call);
\r
440 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
443 if (_resp instanceof java.rmi.RemoteException)
\r
445 throw (java.rmi.RemoteException) _resp;
\r
449 extractAttachments(_call);
\r
452 return (vamsas.objects.simple.WsJobId) _resp;
\r
453 } catch (java.lang.Exception _exception)
\r
455 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
456 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r
461 public vamsas.objects.simple.WsJobId cancel(java.lang.String jobId)
\r
462 throws java.rmi.RemoteException
\r
464 if (super.cachedEndpoint == null)
\r
466 throw new org.apache.axis.NoEndPointException();
\r
468 org.apache.axis.client.Call _call = createCall();
\r
469 _call.setOperation(_operations[4]);
\r
470 _call.setUseSOAPAction(true);
\r
471 _call.setSOAPActionURI("");
\r
473 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
475 .setOperationName(new javax.xml.namespace.QName("vamsas",
\r
478 setRequestHeaders(_call);
\r
479 setAttachments(_call);
\r
480 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
483 if (_resp instanceof java.rmi.RemoteException)
\r
485 throw (java.rmi.RemoteException) _resp;
\r
489 extractAttachments(_call);
\r
492 return (vamsas.objects.simple.WsJobId) _resp;
\r
493 } catch (java.lang.Exception _exception)
\r
495 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
496 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r