2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package uk.ac.ebi.www;
23 public class WSWUBlastSoapBindingStub extends org.apache.axis.client.Stub
24 implements uk.ac.ebi.www.WSWUBlast
26 private java.util.Vector cachedSerClasses = new java.util.Vector();
28 private java.util.Vector cachedSerQNames = new java.util.Vector();
30 private java.util.Vector cachedSerFactories = new java.util.Vector();
32 private java.util.Vector cachedDeserFactories = new java.util.Vector();
34 public WSWUBlastSoapBindingStub() throws org.apache.axis.AxisFault
39 public WSWUBlastSoapBindingStub(java.net.URL endpointURL,
40 javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
43 super.cachedEndpoint = endpointURL;
46 public WSWUBlastSoapBindingStub(javax.xml.rpc.Service service)
47 throws org.apache.axis.AxisFault
51 super.service = new org.apache.axis.client.Service();
55 super.service = service;
58 javax.xml.namespace.QName qName;
59 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
60 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
61 java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
62 java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
63 java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
64 java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
65 java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
66 java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
67 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
69 cachedSerQNames.add(qName);
70 cls = uk.ac.ebi.www.InputParams.class;
71 cachedSerClasses.add(cls);
72 cachedSerFactories.add(beansf);
73 cachedDeserFactories.add(beandf);
75 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
77 cachedSerQNames.add(qName);
78 cls = uk.ac.ebi.www.WSFile[].class;
79 cachedSerClasses.add(cls);
80 cachedSerFactories.add(arraysf);
81 cachedDeserFactories.add(arraydf);
83 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
85 cachedSerQNames.add(qName);
86 cls = uk.ac.ebi.www.Data[].class;
87 cachedSerClasses.add(cls);
88 cachedSerFactories.add(arraysf);
89 cachedDeserFactories.add(arraydf);
91 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
93 cachedSerQNames.add(qName);
94 cls = uk.ac.ebi.www.Data.class;
95 cachedSerClasses.add(cls);
96 cachedSerFactories.add(beansf);
97 cachedDeserFactories.add(beandf);
99 qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
101 cachedSerQNames.add(qName);
102 cls = uk.ac.ebi.www.WSFile.class;
103 cachedSerClasses.add(cls);
104 cachedSerFactories.add(beansf);
105 cachedDeserFactories.add(beandf);
109 private org.apache.axis.client.Call createCall()
110 throws java.rmi.RemoteException
114 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
116 if (super.maintainSessionSet)
118 _call.setMaintainSession(super.maintainSession);
120 if (super.cachedUsername != null)
122 _call.setUsername(super.cachedUsername);
124 if (super.cachedPassword != null)
126 _call.setPassword(super.cachedPassword);
128 if (super.cachedEndpoint != null)
130 _call.setTargetEndpointAddress(super.cachedEndpoint);
132 if (super.cachedTimeout != null)
134 _call.setTimeout(super.cachedTimeout);
136 if (super.cachedPortName != null)
138 _call.setPortName(super.cachedPortName);
140 java.util.Enumeration keys = super.cachedProperties.keys();
141 while (keys.hasMoreElements())
143 java.lang.String key = (java.lang.String) keys.nextElement();
144 if (_call.isPropertySupported(key))
146 _call.setProperty(key, super.cachedProperties.get(key));
149 // _call.setScopedProperty(key, super.cachedProperties.get(key));
151 // All the type mapping information is registered
152 // when the first call is made.
153 // The type mapping information is actually registered in
154 // the TypeMappingRegistry of the service, which
155 // is the reason why registration is only needed for the first call.
160 // must set encoding style before registering serializers
161 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
162 for (int i = 0; i < cachedSerFactories.size(); ++i)
164 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
165 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
167 java.lang.Class sf = (java.lang.Class) cachedSerFactories
169 java.lang.Class df = (java.lang.Class) cachedDeserFactories
171 _call.registerTypeMapping(cls, qName, sf, df, false);
176 } catch (java.lang.Throwable t)
178 throw new org.apache.axis.AxisFault(
179 "Failure trying to get the Call object", t);
183 public byte[] poll(java.lang.String jobid, java.lang.String type)
184 throws java.rmi.RemoteException
186 if (super.cachedEndpoint == null)
188 throw new org.apache.axis.NoEndPointException();
190 org.apache.axis.client.Call _call = createCall();
191 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
192 new javax.xml.namespace.QName(
193 "http://www.w3.org/2001/XMLSchema", "string"),
194 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
195 _call.addParameter(new javax.xml.namespace.QName("", "type"),
196 new javax.xml.namespace.QName(
197 "http://www.w3.org/2001/XMLSchema", "string"),
198 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
200 new javax.xml.namespace.QName(
201 "http://www.w3.org/2001/XMLSchema", "base64Binary"),
203 _call.setUseSOAPAction(true);
204 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#poll");
205 _call.setOperationStyle("rpc");
206 _call.setOperationName(new javax.xml.namespace.QName(
207 "http://www.ebi.ac.uk/WSWUBlast", "poll"));
209 java.lang.Object _resp = _call
210 .invoke(new java.lang.Object[]
213 if (_resp instanceof java.rmi.RemoteException)
215 throw (java.rmi.RemoteException) _resp;
221 return (byte[]) _resp;
222 } catch (java.lang.Exception _exception)
224 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
230 public java.lang.String runWUBlast(uk.ac.ebi.www.InputParams params,
231 uk.ac.ebi.www.Data[] content) throws java.rmi.RemoteException
233 if (super.cachedEndpoint == null)
235 throw new org.apache.axis.NoEndPointException();
237 org.apache.axis.client.Call _call = createCall();
238 _call.addParameter(new javax.xml.namespace.QName("", "params"),
239 new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
241 uk.ac.ebi.www.InputParams.class,
242 javax.xml.rpc.ParameterMode.IN);
243 _call.addParameter(new javax.xml.namespace.QName("", "content"),
244 new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
246 uk.ac.ebi.www.Data[].class, javax.xml.rpc.ParameterMode.IN);
248 new javax.xml.namespace.QName(
249 "http://www.w3.org/2001/XMLSchema", "string"),
250 java.lang.String.class);
251 _call.setUseSOAPAction(true);
252 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#runWUBlast");
253 _call.setOperationStyle("rpc");
254 _call.setOperationName(new javax.xml.namespace.QName(
255 "http://www.ebi.ac.uk/WSWUBlast", "runWUBlast"));
257 java.lang.Object _resp = _call
258 .invoke(new java.lang.Object[]
259 { params, content });
261 if (_resp instanceof java.rmi.RemoteException)
263 throw (java.rmi.RemoteException) _resp;
269 return (java.lang.String) _resp;
270 } catch (java.lang.Exception _exception)
272 return (java.lang.String) org.apache.axis.utils.JavaUtils
273 .convert(_resp, java.lang.String.class);
278 public byte[] test(java.lang.String jobid, java.lang.String type)
279 throws java.rmi.RemoteException
281 if (super.cachedEndpoint == null)
283 throw new org.apache.axis.NoEndPointException();
285 org.apache.axis.client.Call _call = createCall();
286 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
287 new javax.xml.namespace.QName(
288 "http://www.w3.org/2001/XMLSchema", "string"),
289 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
290 _call.addParameter(new javax.xml.namespace.QName("", "type"),
291 new javax.xml.namespace.QName(
292 "http://www.w3.org/2001/XMLSchema", "string"),
293 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
295 new javax.xml.namespace.QName(
296 "http://www.w3.org/2001/XMLSchema", "base64Binary"),
298 _call.setUseSOAPAction(true);
299 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#test");
300 _call.setOperationStyle("rpc");
301 _call.setOperationName(new javax.xml.namespace.QName(
302 "http://www.ebi.ac.uk/WSWUBlast", "test"));
304 java.lang.Object _resp = _call
305 .invoke(new java.lang.Object[]
308 if (_resp instanceof java.rmi.RemoteException)
310 throw (java.rmi.RemoteException) _resp;
316 return (byte[]) _resp;
317 } catch (java.lang.Exception _exception)
319 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
325 public java.lang.String checkStatus(java.lang.String jobid)
326 throws java.rmi.RemoteException
328 if (super.cachedEndpoint == null)
330 throw new org.apache.axis.NoEndPointException();
332 org.apache.axis.client.Call _call = createCall();
333 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
334 new javax.xml.namespace.QName(
335 "http://www.w3.org/2001/XMLSchema", "string"),
336 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
338 new javax.xml.namespace.QName(
339 "http://www.w3.org/2001/XMLSchema", "string"),
340 java.lang.String.class);
341 _call.setUseSOAPAction(true);
342 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#checkStatus");
343 _call.setOperationStyle("rpc");
344 _call.setOperationName(new javax.xml.namespace.QName(
345 "http://www.ebi.ac.uk/WSWUBlast", "checkStatus"));
347 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { jobid });
349 if (_resp instanceof java.rmi.RemoteException)
351 throw (java.rmi.RemoteException) _resp;
357 return (java.lang.String) _resp;
358 } catch (java.lang.Exception _exception)
360 return (java.lang.String) org.apache.axis.utils.JavaUtils
361 .convert(_resp, java.lang.String.class);
366 public uk.ac.ebi.www.WSFile[] getResults(java.lang.String jobid)
367 throws java.rmi.RemoteException
369 if (super.cachedEndpoint == null)
371 throw new org.apache.axis.NoEndPointException();
373 org.apache.axis.client.Call _call = createCall();
374 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
375 new javax.xml.namespace.QName(
376 "http://www.w3.org/2001/XMLSchema", "string"),
377 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
379 new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
381 uk.ac.ebi.www.WSFile[].class);
382 _call.setUseSOAPAction(true);
383 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#getResults");
384 _call.setOperationStyle("rpc");
385 _call.setOperationName(new javax.xml.namespace.QName(
386 "http://www.ebi.ac.uk/WSWUBlast", "getResults"));
388 java.lang.Object _resp = _call.invoke(new java.lang.Object[] { jobid });
390 if (_resp instanceof java.rmi.RemoteException)
392 throw (java.rmi.RemoteException) _resp;
398 return (uk.ac.ebi.www.WSFile[]) _resp;
399 } catch (java.lang.Exception _exception)
401 return (uk.ac.ebi.www.WSFile[]) org.apache.axis.utils.JavaUtils
402 .convert(_resp, uk.ac.ebi.www.WSFile[].class);
407 public byte[] polljob(java.lang.String jobid, java.lang.String outformat)
408 throws java.rmi.RemoteException
410 if (super.cachedEndpoint == null)
412 throw new org.apache.axis.NoEndPointException();
414 org.apache.axis.client.Call _call = createCall();
415 _call.addParameter(new javax.xml.namespace.QName("", "jobid"),
416 new javax.xml.namespace.QName(
417 "http://www.w3.org/2001/XMLSchema", "string"),
418 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
419 _call.addParameter(new javax.xml.namespace.QName("", "outformat"),
420 new javax.xml.namespace.QName(
421 "http://www.w3.org/2001/XMLSchema", "string"),
422 java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
424 new javax.xml.namespace.QName(
425 "http://www.w3.org/2001/XMLSchema", "base64Binary"),
427 _call.setUseSOAPAction(true);
428 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#polljob");
429 _call.setOperationStyle("rpc");
430 _call.setOperationName(new javax.xml.namespace.QName(
431 "http://www.ebi.ac.uk/WSWUBlast", "polljob"));
433 java.lang.Object _resp = _call
434 .invoke(new java.lang.Object[]
435 { jobid, outformat });
437 if (_resp instanceof java.rmi.RemoteException)
439 throw (java.rmi.RemoteException) _resp;
445 return (byte[]) _resp;
446 } catch (java.lang.Exception _exception)
448 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,
454 public byte[] doWUBlast(uk.ac.ebi.www.InputParams params, byte[] content)
455 throws java.rmi.RemoteException
457 if (super.cachedEndpoint == null)
459 throw new org.apache.axis.NoEndPointException();
461 org.apache.axis.client.Call _call = createCall();
462 _call.addParameter(new javax.xml.namespace.QName("", "params"),
463 new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
465 uk.ac.ebi.www.InputParams.class,
466 javax.xml.rpc.ParameterMode.IN);
467 _call.addParameter(new javax.xml.namespace.QName("", "content"),
468 new javax.xml.namespace.QName(
469 "http://www.w3.org/2001/XMLSchema", "base64Binary"),
470 byte[].class, javax.xml.rpc.ParameterMode.IN);
472 new javax.xml.namespace.QName(
473 "http://www.w3.org/2001/XMLSchema", "base64Binary"),
475 _call.setUseSOAPAction(true);
476 _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#doWUBlast");
477 _call.setOperationStyle("rpc");
478 _call.setOperationName(new javax.xml.namespace.QName(
479 "http://www.ebi.ac.uk/WSWUBlast", "doWUBlast"));
481 java.lang.Object _resp = _call
482 .invoke(new java.lang.Object[]
483 { params, content });
485 if (_resp instanceof java.rmi.RemoteException)
487 throw (java.rmi.RemoteException) _resp;
493 return (byte[]) _resp;
494 } catch (java.lang.Exception _exception)
496 return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp,