2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
\r
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
\r
5 * This file is part of Jalview.
\r
7 * Jalview is free software: you can redistribute it and/or
\r
8 * modify it under the terms of the GNU General Public License
\r
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
\r
11 * Jalview is distributed in the hope that it will be useful, but
\r
12 * WITHOUT ANY WARRANTY; without even the implied warranty
\r
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
\r
14 * PURPOSE. See the GNU General Public License for more details.
\r
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
\r
20 public class SeqSearchServiceSoapBindingStub extends
\r
21 org.apache.axis.client.Stub implements ext.vamsas.SeqSearchI
\r
23 private java.util.Vector cachedSerClasses = new java.util.Vector();
\r
25 private java.util.Vector cachedSerQNames = new java.util.Vector();
\r
27 private java.util.Vector cachedSerFactories = new java.util.Vector();
\r
29 private java.util.Vector cachedDeserFactories = new java.util.Vector();
\r
31 static org.apache.axis.description.OperationDesc[] _operations;
\r
35 _operations = new org.apache.axis.description.OperationDesc[5];
\r
36 _initOperationDesc1();
\r
39 private static void _initOperationDesc1()
\r
41 org.apache.axis.description.OperationDesc oper;
\r
42 oper = new org.apache.axis.description.OperationDesc();
\r
43 oper.setName("getDatabase");
\r
44 oper.setReturnType(new javax.xml.namespace.QName(
\r
45 "http://www.w3.org/2001/XMLSchema", "string"));
\r
46 oper.setReturnClass(java.lang.String.class);
\r
47 oper.setReturnQName(new javax.xml.namespace.QName("",
\r
48 "getDatabaseReturn"));
\r
49 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
50 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
51 _operations[0] = oper;
\r
53 oper = new org.apache.axis.description.OperationDesc();
\r
54 oper.setName("getResult");
\r
55 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
\r
56 new javax.xml.namespace.QName(
\r
57 "http://www.w3.org/2001/XMLSchema", "string"),
\r
58 java.lang.String.class,
\r
59 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
60 oper.setReturnType(new javax.xml.namespace.QName(
\r
61 "simple.objects.vamsas", "SeqSearchResult"));
\r
62 oper.setReturnClass(vamsas.objects.simple.SeqSearchResult.class);
\r
63 oper.setReturnQName(new javax.xml.namespace.QName("", "getResultReturn"));
\r
64 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
65 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
66 _operations[1] = oper;
\r
68 oper = new org.apache.axis.description.OperationDesc();
\r
69 oper.setName("psearch");
\r
70 oper.addParameter(new javax.xml.namespace.QName("", "al"),
\r
71 new javax.xml.namespace.QName("simple.objects.vamsas",
\r
72 "Alignment"), vamsas.objects.simple.Alignment.class,
\r
73 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
74 oper.addParameter(new javax.xml.namespace.QName("", "database"),
\r
75 new javax.xml.namespace.QName(
\r
76 "http://www.w3.org/2001/XMLSchema", "string"),
\r
77 java.lang.String.class,
\r
78 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
79 oper.setReturnType(new javax.xml.namespace.QName(
\r
80 "simple.objects.vamsas", "WsJobId"));
\r
81 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
82 oper.setReturnQName(new javax.xml.namespace.QName("", "psearchReturn"));
\r
83 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
84 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
85 _operations[2] = oper;
\r
87 oper = new org.apache.axis.description.OperationDesc();
\r
88 oper.setName("search");
\r
89 oper.addParameter(new javax.xml.namespace.QName("", "s"),
\r
90 new javax.xml.namespace.QName("simple.objects.vamsas",
\r
91 "Sequence"), vamsas.objects.simple.Sequence.class,
\r
92 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
93 oper.addParameter(new javax.xml.namespace.QName("", "database"),
\r
94 new javax.xml.namespace.QName(
\r
95 "http://www.w3.org/2001/XMLSchema", "string"),
\r
96 java.lang.String.class,
\r
97 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
98 oper.setReturnType(new javax.xml.namespace.QName(
\r
99 "simple.objects.vamsas", "WsJobId"));
\r
100 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
101 oper.setReturnQName(new javax.xml.namespace.QName("", "searchReturn"));
\r
102 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
103 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
104 _operations[3] = oper;
\r
106 oper = new org.apache.axis.description.OperationDesc();
\r
107 oper.setName("cancel");
\r
108 oper.addParameter(new javax.xml.namespace.QName("", "jobId"),
\r
109 new javax.xml.namespace.QName(
\r
110 "http://www.w3.org/2001/XMLSchema", "string"),
\r
111 java.lang.String.class,
\r
112 org.apache.axis.description.ParameterDesc.IN, false, false);
\r
113 oper.setReturnType(new javax.xml.namespace.QName(
\r
114 "simple.objects.vamsas", "WsJobId"));
\r
115 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
\r
116 oper.setReturnQName(new javax.xml.namespace.QName("", "cancelReturn"));
\r
117 oper.setStyle(org.apache.axis.constants.Style.RPC);
\r
118 oper.setUse(org.apache.axis.constants.Use.ENCODED);
\r
119 _operations[4] = oper;
\r
123 public SeqSearchServiceSoapBindingStub() throws org.apache.axis.AxisFault
\r
128 public SeqSearchServiceSoapBindingStub(java.net.URL endpointURL,
\r
129 javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
\r
132 super.cachedEndpoint = endpointURL;
\r
135 public SeqSearchServiceSoapBindingStub(javax.xml.rpc.Service service)
\r
136 throws org.apache.axis.AxisFault
\r
138 if (service == null)
\r
140 super.service = new org.apache.axis.client.Service();
\r
144 super.service = service;
\r
146 java.lang.Class cls;
\r
147 javax.xml.namespace.QName qName;
\r
148 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
\r
149 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
\r
150 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
\r
151 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
\r
152 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
\r
153 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
\r
154 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
\r
155 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
\r
156 java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
\r
157 java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
\r
158 qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");
\r
159 cachedSerQNames.add(qName);
\r
160 cls = vamsas.objects.simple.Result.class;
\r
161 cachedSerClasses.add(cls);
\r
162 cachedSerFactories.add(beansf);
\r
163 cachedDeserFactories.add(beandf);
\r
165 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
167 cachedSerQNames.add(qName);
\r
168 cls = vamsas.objects.simple.WsJobId.class;
\r
169 cachedSerClasses.add(cls);
\r
170 cachedSerFactories.add(beansf);
\r
171 cachedDeserFactories.add(beandf);
\r
173 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
\r
175 cachedSerQNames.add(qName);
\r
176 cls = vamsas.objects.simple.Object.class;
\r
177 cachedSerClasses.add(cls);
\r
178 cachedSerFactories.add(beansf);
\r
179 cachedDeserFactories.add(beandf);
\r
181 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_xsd_string");
\r
182 cachedSerQNames.add(qName);
\r
183 cls = java.lang.String[].class;
\r
184 cachedSerClasses.add(cls);
\r
185 cachedSerFactories.add(arraysf);
\r
186 cachedDeserFactories.add(arraydf);
\r
188 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
190 cachedSerQNames.add(qName);
\r
191 cls = vamsas.objects.simple.Alignment.class;
\r
192 cachedSerClasses.add(cls);
\r
193 cachedSerFactories.add(beansf);
\r
194 cachedDeserFactories.add(beandf);
\r
196 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
198 cachedSerQNames.add(qName);
\r
199 cls = vamsas.objects.simple.Sequence.class;
\r
200 cachedSerClasses.add(cls);
\r
201 cachedSerFactories.add(beansf);
\r
202 cachedDeserFactories.add(beandf);
\r
204 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_tns1_Sequence");
\r
205 cachedSerQNames.add(qName);
\r
206 cls = vamsas.objects.simple.Sequence[].class;
\r
207 cachedSerClasses.add(cls);
\r
208 cachedSerFactories.add(arraysf);
\r
209 cachedDeserFactories.add(arraydf);
\r
211 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
212 "SeqSearchResult");
\r
213 cachedSerQNames.add(qName);
\r
214 cls = vamsas.objects.simple.SeqSearchResult.class;
\r
215 cachedSerClasses.add(cls);
\r
216 cachedSerFactories.add(beansf);
\r
217 cachedDeserFactories.add(beandf);
\r
219 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
\r
221 cachedSerQNames.add(qName);
\r
222 cls = vamsas.objects.simple.SequenceSet.class;
\r
223 cachedSerClasses.add(cls);
\r
224 cachedSerFactories.add(beansf);
\r
225 cachedDeserFactories.add(beandf);
\r
229 protected org.apache.axis.client.Call createCall()
\r
230 throws java.rmi.RemoteException
\r
234 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
\r
236 if (super.maintainSessionSet)
\r
238 _call.setMaintainSession(super.maintainSession);
\r
240 if (super.cachedUsername != null)
\r
242 _call.setUsername(super.cachedUsername);
\r
244 if (super.cachedPassword != null)
\r
246 _call.setPassword(super.cachedPassword);
\r
248 if (super.cachedEndpoint != null)
\r
250 _call.setTargetEndpointAddress(super.cachedEndpoint);
\r
252 if (super.cachedTimeout != null)
\r
254 _call.setTimeout(super.cachedTimeout);
\r
256 if (super.cachedPortName != null)
\r
258 _call.setPortName(super.cachedPortName);
\r
260 java.util.Enumeration keys = super.cachedProperties.keys();
\r
261 while (keys.hasMoreElements())
\r
263 java.lang.String key = (java.lang.String) keys.nextElement();
\r
264 _call.setProperty(key, super.cachedProperties.get(key));
\r
266 // All the type mapping information is registered
\r
267 // when the first call is made.
\r
268 // The type mapping information is actually registered in
\r
269 // the TypeMappingRegistry of the service, which
\r
270 // is the reason why registration is only needed for the first call.
\r
271 synchronized (this)
\r
275 // must set encoding style before registering serializers
\r
276 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
277 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
\r
278 for (int i = 0; i < cachedSerFactories.size(); ++i)
\r
280 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
\r
281 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
\r
283 java.lang.Class sf = (java.lang.Class) cachedSerFactories
\r
285 java.lang.Class df = (java.lang.Class) cachedDeserFactories
\r
287 _call.registerTypeMapping(cls, qName, sf, df, false);
\r
292 } catch (java.lang.Throwable _t)
\r
294 throw new org.apache.axis.AxisFault(
\r
295 "Failure trying to get the Call object", _t);
\r
299 public java.lang.String getDatabase() throws java.rmi.RemoteException
\r
301 if (super.cachedEndpoint == null)
\r
303 throw new org.apache.axis.NoEndPointException();
\r
305 org.apache.axis.client.Call _call = createCall();
\r
306 _call.setOperation(_operations[0]);
\r
307 _call.setUseSOAPAction(true);
\r
308 _call.setSOAPActionURI("");
\r
309 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
310 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
313 setRequestHeaders(_call);
\r
314 setAttachments(_call);
\r
315 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
318 if (_resp instanceof java.rmi.RemoteException)
\r
320 throw (java.rmi.RemoteException) _resp;
\r
324 extractAttachments(_call);
\r
327 return (java.lang.String) _resp;
\r
328 } catch (java.lang.Exception _exception)
\r
330 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
\r
331 _resp, java.lang.String.class);
\r
336 public vamsas.objects.simple.SeqSearchResult getResult(
\r
337 java.lang.String job_id) throws java.rmi.RemoteException
\r
339 if (super.cachedEndpoint == null)
\r
341 throw new org.apache.axis.NoEndPointException();
\r
343 org.apache.axis.client.Call _call = createCall();
\r
344 _call.setOperation(_operations[1]);
\r
345 _call.setUseSOAPAction(true);
\r
346 _call.setSOAPActionURI("");
\r
347 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
348 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
351 setRequestHeaders(_call);
\r
352 setAttachments(_call);
\r
353 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
356 if (_resp instanceof java.rmi.RemoteException)
\r
358 throw (java.rmi.RemoteException) _resp;
\r
362 extractAttachments(_call);
\r
365 return (vamsas.objects.simple.SeqSearchResult) _resp;
\r
366 } catch (java.lang.Exception _exception)
\r
368 return (vamsas.objects.simple.SeqSearchResult) org.apache.axis.utils.JavaUtils
\r
369 .convert(_resp, vamsas.objects.simple.SeqSearchResult.class);
\r
374 public vamsas.objects.simple.WsJobId psearch(
\r
375 vamsas.objects.simple.Alignment al, java.lang.String database)
\r
376 throws java.rmi.RemoteException
\r
378 if (super.cachedEndpoint == null)
\r
380 throw new org.apache.axis.NoEndPointException();
\r
382 org.apache.axis.client.Call _call = createCall();
\r
383 _call.setOperation(_operations[2]);
\r
384 _call.setUseSOAPAction(true);
\r
385 _call.setSOAPActionURI("");
\r
386 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
387 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
\r
390 setRequestHeaders(_call);
\r
391 setAttachments(_call);
\r
392 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
395 if (_resp instanceof java.rmi.RemoteException)
\r
397 throw (java.rmi.RemoteException) _resp;
\r
401 extractAttachments(_call);
\r
404 return (vamsas.objects.simple.WsJobId) _resp;
\r
405 } catch (java.lang.Exception _exception)
\r
407 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
408 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r
413 public vamsas.objects.simple.WsJobId search(
\r
414 vamsas.objects.simple.Sequence s, java.lang.String database)
\r
415 throws java.rmi.RemoteException
\r
417 if (super.cachedEndpoint == null)
\r
419 throw new org.apache.axis.NoEndPointException();
\r
421 org.apache.axis.client.Call _call = createCall();
\r
422 _call.setOperation(_operations[3]);
\r
423 _call.setUseSOAPAction(true);
\r
424 _call.setSOAPActionURI("");
\r
425 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
426 _call.setOperationName(new javax.xml.namespace.QName("vamsas", "search"));
\r
428 setRequestHeaders(_call);
\r
429 setAttachments(_call);
\r
430 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
433 if (_resp instanceof java.rmi.RemoteException)
\r
435 throw (java.rmi.RemoteException) _resp;
\r
439 extractAttachments(_call);
\r
442 return (vamsas.objects.simple.WsJobId) _resp;
\r
443 } catch (java.lang.Exception _exception)
\r
445 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
446 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r
451 public vamsas.objects.simple.WsJobId cancel(java.lang.String jobId)
\r
452 throws java.rmi.RemoteException
\r
454 if (super.cachedEndpoint == null)
\r
456 throw new org.apache.axis.NoEndPointException();
\r
458 org.apache.axis.client.Call _call = createCall();
\r
459 _call.setOperation(_operations[4]);
\r
460 _call.setUseSOAPAction(true);
\r
461 _call.setSOAPActionURI("");
\r
462 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
\r
463 _call.setOperationName(new javax.xml.namespace.QName("vamsas", "cancel"));
\r
465 setRequestHeaders(_call);
\r
466 setAttachments(_call);
\r
467 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
\r
470 if (_resp instanceof java.rmi.RemoteException)
\r
472 throw (java.rmi.RemoteException) _resp;
\r
476 extractAttachments(_call);
\r
479 return (vamsas.objects.simple.WsJobId) _resp;
\r
480 } catch (java.lang.Exception _exception)
\r
482 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils
\r
483 .convert(_resp, vamsas.objects.simple.WsJobId.class);
\r