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