2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
3 * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 * Jalview - A Sequence Alignment Editor and Viewer
21 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
23 * This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License
25 * as published by the Free Software Foundation; either version 2
26 * of the License, or (at your option) any later version.
28 * This program is distributed in the hope that it will be useful,
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 * GNU General Public License for more details.
33 * You should have received a copy of the GNU General Public License
34 * along with this program; if not, write to the Free Software
35 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
39 public class MuscleWSSoapBindingStub
40 extends org.apache.axis.client.Stub implements ext.vamsas.MuscleWS
42 static org.apache.axis.description.OperationDesc[] _operations;
46 _operations = new org.apache.axis.description.OperationDesc[4];
47 _initOperationDesc1();
50 private java.util.Vector cachedSerClasses = new java.util.Vector();
51 private java.util.Vector cachedSerQNames = new java.util.Vector();
52 private java.util.Vector cachedSerFactories = new java.util.Vector();
53 private java.util.Vector cachedDeserFactories = new java.util.Vector();
55 public MuscleWSSoapBindingStub()
56 throws org.apache.axis.AxisFault
61 public MuscleWSSoapBindingStub(java.net.URL endpointURL,
62 javax.xml.rpc.Service service)
63 throws org.apache.axis.AxisFault
66 super.cachedEndpoint = endpointURL;
69 public MuscleWSSoapBindingStub(javax.xml.rpc.Service service)
70 throws org.apache.axis.AxisFault
74 super.service = new org.apache.axis.client.Service();
78 super.service = service;
82 javax.xml.namespace.QName qName;
83 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
84 java.lang.Class beandf = org.apache.axis.encoding.ser.
85 BeanDeserializerFactory.class;
86 //java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
87 //java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
88 java.lang.Class arraysf = org.apache.axis.encoding.ser.
89 ArraySerializerFactory.class;
90 java.lang.Class arraydf = org.apache.axis.encoding.ser.
91 ArrayDeserializerFactory.class;
92 //java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
93 // java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
94 //java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
95 //java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
96 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
98 cachedSerQNames.add(qName);
99 cls = vamsas.objects.simple.Sequence.class;
100 cachedSerClasses.add(cls);
101 cachedSerFactories.add(beansf);
102 cachedDeserFactories.add(beandf);
104 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_tns1_Sequence");
105 cachedSerQNames.add(qName);
106 cls = vamsas.objects.simple.Sequence[].class;
107 cachedSerClasses.add(cls);
108 cachedSerFactories.add(arraysf);
109 cachedDeserFactories.add(arraydf);
111 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
113 cachedSerQNames.add(qName);
114 cls = vamsas.objects.simple.MsaResult.class;
115 cachedSerClasses.add(cls);
116 cachedSerFactories.add(beansf);
117 cachedDeserFactories.add(beandf);
119 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
121 cachedSerQNames.add(qName);
122 cls = vamsas.objects.simple.SequenceSet.class;
123 cachedSerClasses.add(cls);
124 cachedSerFactories.add(beansf);
125 cachedDeserFactories.add(beandf);
127 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
129 cachedSerQNames.add(qName);
130 cls = vamsas.objects.simple.Object.class;
131 cachedSerClasses.add(cls);
132 cachedSerFactories.add(beansf);
133 cachedDeserFactories.add(beandf);
135 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
137 cachedSerQNames.add(qName);
138 cls = vamsas.objects.simple.Alignment.class;
139 cachedSerClasses.add(cls);
140 cachedSerFactories.add(beansf);
141 cachedDeserFactories.add(beandf);
143 qName = new javax.xml.namespace.QName("simple.objects.vamsas", "WsJobId");
144 cachedSerQNames.add(qName);
145 cls = vamsas.objects.simple.WsJobId.class;
146 cachedSerClasses.add(cls);
147 cachedSerFactories.add(beansf);
148 cachedDeserFactories.add(beandf);
150 qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_xsd_string");
151 cachedSerQNames.add(qName);
152 cls = java.lang.String[].class;
153 cachedSerClasses.add(cls);
154 cachedSerFactories.add(arraysf);
155 cachedDeserFactories.add(arraydf);
157 qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");
158 cachedSerQNames.add(qName);
159 cls = vamsas.objects.simple.Result.class;
160 cachedSerClasses.add(cls);
161 cachedSerFactories.add(beansf);
162 cachedDeserFactories.add(beandf);
165 private static void _initOperationDesc1()
167 org.apache.axis.description.OperationDesc oper;
168 oper = new org.apache.axis.description.OperationDesc();
169 oper.setName("align");
170 oper.addParameter(new javax.xml.namespace.QName("", "seqSet"),
171 new javax.xml.namespace.QName("simple.objects.vamsas",
173 vamsas.objects.simple.SequenceSet.class,
174 org.apache.axis.description.ParameterDesc.IN, false, false);
175 oper.setReturnType(new javax.xml.namespace.QName(
176 "simple.objects.vamsas", "WsJobId"));
177 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
178 oper.setReturnQName(new javax.xml.namespace.QName("", "alignReturn"));
179 oper.setStyle(org.apache.axis.constants.Style.RPC);
180 oper.setUse(org.apache.axis.constants.Use.ENCODED);
181 _operations[0] = oper;
183 oper = new org.apache.axis.description.OperationDesc();
184 oper.setName("getalign");
185 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
186 new javax.xml.namespace.QName(
187 "http://www.w3.org/2001/XMLSchema",
188 "string"), java.lang.String.class,
189 org.apache.axis.description.ParameterDesc.IN, false, false);
190 oper.setReturnType(new javax.xml.namespace.QName(
191 "simple.objects.vamsas", "Alignment"));
192 oper.setReturnClass(vamsas.objects.simple.Alignment.class);
193 oper.setReturnQName(new javax.xml.namespace.QName("", "getalignReturn"));
194 oper.setStyle(org.apache.axis.constants.Style.RPC);
195 oper.setUse(org.apache.axis.constants.Use.ENCODED);
196 _operations[1] = oper;
198 oper = new org.apache.axis.description.OperationDesc();
199 oper.setName("getResult");
200 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
201 new javax.xml.namespace.QName(
202 "http://www.w3.org/2001/XMLSchema",
203 "string"), java.lang.String.class,
204 org.apache.axis.description.ParameterDesc.IN, false, false);
205 oper.setReturnType(new javax.xml.namespace.QName(
206 "simple.objects.vamsas", "MsaResult"));
207 oper.setReturnClass(vamsas.objects.simple.MsaResult.class);
208 oper.setReturnQName(new javax.xml.namespace.QName("", "getResultReturn"));
209 oper.setStyle(org.apache.axis.constants.Style.RPC);
210 oper.setUse(org.apache.axis.constants.Use.ENCODED);
211 _operations[2] = oper;
213 oper = new org.apache.axis.description.OperationDesc();
214 oper.setName("cancel");
215 oper.addParameter(new javax.xml.namespace.QName("", "jobId"),
216 new javax.xml.namespace.QName(
217 "http://www.w3.org/2001/XMLSchema",
218 "string"), java.lang.String.class,
219 org.apache.axis.description.ParameterDesc.IN, false, false);
220 oper.setReturnType(new javax.xml.namespace.QName(
221 "simple.objects.vamsas", "WsJobId"));
222 oper.setReturnClass(vamsas.objects.simple.WsJobId.class);
223 oper.setReturnQName(new javax.xml.namespace.QName("", "cancelReturn"));
224 oper.setStyle(org.apache.axis.constants.Style.RPC);
225 oper.setUse(org.apache.axis.constants.Use.ENCODED);
226 _operations[3] = oper;
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.
235 service.createCall();
237 if (super.maintainSessionSet)
239 _call.setMaintainSession(super.maintainSession);
242 if (super.cachedUsername != null)
244 _call.setUsername(super.cachedUsername);
247 if (super.cachedPassword != null)
249 _call.setPassword(super.cachedPassword);
252 if (super.cachedEndpoint != null)
254 _call.setTargetEndpointAddress(super.cachedEndpoint);
257 if (super.cachedTimeout != null)
259 _call.setTimeout(super.cachedTimeout);
262 if (super.cachedPortName != null)
264 _call.setPortName(super.cachedPortName);
267 java.util.Enumeration keys = super.cachedProperties.keys();
269 while (keys.hasMoreElements())
271 java.lang.String key = (java.lang.String) keys.nextElement();
272 _call.setProperty(key, super.cachedProperties.get(key));
275 // All the type mapping information is registered
276 // when the first call is made.
277 // The type mapping information is actually registered in
278 // the TypeMappingRegistry of the service, which
279 // is the reason why registration is only needed for the first call.
284 // must set encoding style before registering serializers
285 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.
287 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
289 for (int i = 0; i < cachedSerFactories.size(); ++i)
291 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
292 javax.xml.namespace.QName qName = (javax.xml.namespace.QName)
293 cachedSerQNames.get(i);
294 java.lang.Class sf = (java.lang.Class) cachedSerFactories.get(i);
295 java.lang.Class df = (java.lang.Class) cachedDeserFactories.get(i);
296 _call.registerTypeMapping(cls, qName, sf, df, false);
303 catch (java.lang.Throwable _t)
305 throw new org.apache.axis.AxisFault(
306 "Failure trying to get the Call object",
311 public vamsas.objects.simple.WsJobId align(
312 vamsas.objects.simple.SequenceSet seqSet)
313 throws java.rmi.RemoteException
315 if (super.cachedEndpoint == null)
317 throw new org.apache.axis.NoEndPointException();
320 org.apache.axis.client.Call _call = createCall();
321 _call.setOperation(_operations[0]);
322 _call.setUseSOAPAction(true);
323 _call.setSOAPActionURI("");
324 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
325 _call.setOperationName(new javax.xml.namespace.QName("vamsas", "align"));
327 setRequestHeaders(_call);
328 setAttachments(_call);
330 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
333 if (_resp instanceof java.rmi.RemoteException)
335 throw (java.rmi.RemoteException) _resp;
339 extractAttachments(_call);
343 return (vamsas.objects.simple.WsJobId) _resp;
345 catch (java.lang.Exception _exception)
347 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils.
349 vamsas.objects.simple.WsJobId.class);
354 public vamsas.objects.simple.Alignment getalign(java.lang.String job_id)
355 throws java.rmi.RemoteException
357 if (super.cachedEndpoint == null)
359 throw new org.apache.axis.NoEndPointException();
362 org.apache.axis.client.Call _call = createCall();
363 _call.setOperation(_operations[1]);
364 _call.setUseSOAPAction(true);
365 _call.setSOAPActionURI("");
366 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
367 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
370 setRequestHeaders(_call);
371 setAttachments(_call);
373 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
376 if (_resp instanceof java.rmi.RemoteException)
378 throw (java.rmi.RemoteException) _resp;
382 extractAttachments(_call);
386 return (vamsas.objects.simple.Alignment) _resp;
388 catch (java.lang.Exception _exception)
390 return (vamsas.objects.simple.Alignment) org.apache.axis.utils.
391 JavaUtils.convert(_resp,
392 vamsas.objects.simple.Alignment.class);
397 public vamsas.objects.simple.MsaResult getResult(java.lang.String job_id)
398 throws java.rmi.RemoteException
400 if (super.cachedEndpoint == null)
402 throw new org.apache.axis.NoEndPointException();
405 org.apache.axis.client.Call _call = createCall();
406 _call.setOperation(_operations[2]);
407 _call.setUseSOAPAction(true);
408 _call.setSOAPActionURI("");
409 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
410 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
413 setRequestHeaders(_call);
414 setAttachments(_call);
416 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
419 if (_resp instanceof java.rmi.RemoteException)
421 throw (java.rmi.RemoteException) _resp;
425 extractAttachments(_call);
429 return (vamsas.objects.simple.MsaResult) _resp;
431 catch (java.lang.Exception _exception)
433 return (vamsas.objects.simple.MsaResult) org.apache.axis.utils.
434 JavaUtils.convert(_resp,
435 vamsas.objects.simple.MsaResult.class);
440 public vamsas.objects.simple.WsJobId cancel(java.lang.String jobId)
441 throws java.rmi.RemoteException
443 if (super.cachedEndpoint == null)
445 throw new org.apache.axis.NoEndPointException();
448 org.apache.axis.client.Call _call = createCall();
449 _call.setOperation(_operations[3]);
450 _call.setUseSOAPAction(true);
451 _call.setSOAPActionURI("");
452 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
453 _call.setOperationName(new javax.xml.namespace.QName("vamsas", "cancel"));
455 setRequestHeaders(_call);
456 setAttachments(_call);
458 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
461 if (_resp instanceof java.rmi.RemoteException)
463 throw (java.rmi.RemoteException) _resp;
467 extractAttachments(_call);
471 return (vamsas.objects.simple.WsJobId) _resp;
473 catch (java.lang.Exception _exception)
475 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils.
477 vamsas.objects.simple.WsJobId.class);