Mapping to PDB added
[jalview.git] / src / ext / vamsas / MuscleWSSoapBindingStub.java
1 /**
2  * MuscleWSSoapBindingStub.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */\r
7 \r
8 /*
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
25 */\r
26 package ext.vamsas;\r
27 \r
28 public class MuscleWSSoapBindingStub extends org.apache.axis.client.Stub\r
29     implements ext.vamsas.MuscleWS {\r
30     static org.apache.axis.description.OperationDesc[] _operations;\r
31 \r
32     static {\r
33         _operations = new org.apache.axis.description.OperationDesc[4];\r
34         _initOperationDesc1();\r
35     }\r
36 \r
37     private java.util.Vector cachedSerClasses = new java.util.Vector();\r
38     private java.util.Vector cachedSerQNames = new java.util.Vector();\r
39     private java.util.Vector cachedSerFactories = new java.util.Vector();\r
40     private java.util.Vector cachedDeserFactories = new java.util.Vector();\r
41 \r
42     public MuscleWSSoapBindingStub() throws org.apache.axis.AxisFault {\r
43         this(null);\r
44     }\r
45 \r
46     public MuscleWSSoapBindingStub(java.net.URL endpointURL,\r
47         javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {\r
48         this(service);\r
49         super.cachedEndpoint = endpointURL;\r
50     }\r
51 \r
52     public MuscleWSSoapBindingStub(javax.xml.rpc.Service service)\r
53         throws org.apache.axis.AxisFault {\r
54         if (service == null) {\r
55             super.service = new org.apache.axis.client.Service();\r
56         } else {\r
57             super.service = service;\r
58         }\r
59 \r
60         java.lang.Class cls;\r
61         javax.xml.namespace.QName qName;\r
62         java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;\r
63         java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;\r
64         //java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;\r
65         //java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;\r
66         java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;\r
67         java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;\r
68         //java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;\r
69         // java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;\r
70         //java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;\r
71         //java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;\r
72         qName = new javax.xml.namespace.QName("simple.objects.vamsas",\r
73                 "Sequence");\r
74         cachedSerQNames.add(qName);\r
75         cls = vamsas.objects.simple.Sequence.class;\r
76         cachedSerClasses.add(cls);\r
77         cachedSerFactories.add(beansf);\r
78         cachedDeserFactories.add(beandf);\r
79 \r
80         qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_tns1_Sequence");\r
81         cachedSerQNames.add(qName);\r
82         cls = vamsas.objects.simple.Sequence[].class;\r
83         cachedSerClasses.add(cls);\r
84         cachedSerFactories.add(arraysf);\r
85         cachedDeserFactories.add(arraydf);\r
86 \r
87         qName = new javax.xml.namespace.QName("simple.objects.vamsas",\r
88                 "MsaResult");\r
89         cachedSerQNames.add(qName);\r
90         cls = vamsas.objects.simple.MsaResult.class;\r
91         cachedSerClasses.add(cls);\r
92         cachedSerFactories.add(beansf);\r
93         cachedDeserFactories.add(beandf);\r
94 \r
95         qName = new javax.xml.namespace.QName("simple.objects.vamsas",\r
96                 "SequenceSet");\r
97         cachedSerQNames.add(qName);\r
98         cls = vamsas.objects.simple.SequenceSet.class;\r
99         cachedSerClasses.add(cls);\r
100         cachedSerFactories.add(beansf);\r
101         cachedDeserFactories.add(beandf);\r
102 \r
103         qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",\r
104                 "Object");\r
105         cachedSerQNames.add(qName);\r
106         cls = vamsas.objects.simple.Object.class;\r
107         cachedSerClasses.add(cls);\r
108         cachedSerFactories.add(beansf);\r
109         cachedDeserFactories.add(beandf);\r
110 \r
111         qName = new javax.xml.namespace.QName("simple.objects.vamsas",\r
112                 "Alignment");\r
113         cachedSerQNames.add(qName);\r
114         cls = vamsas.objects.simple.Alignment.class;\r
115         cachedSerClasses.add(cls);\r
116         cachedSerFactories.add(beansf);\r
117         cachedDeserFactories.add(beandf);\r
118 \r
119         qName = new javax.xml.namespace.QName("simple.objects.vamsas", "WsJobId");\r
120         cachedSerQNames.add(qName);\r
121         cls = vamsas.objects.simple.WsJobId.class;\r
122         cachedSerClasses.add(cls);\r
123         cachedSerFactories.add(beansf);\r
124         cachedDeserFactories.add(beandf);\r
125 \r
126         qName = new javax.xml.namespace.QName("vamsas", "ArrayOf_xsd_string");\r
127         cachedSerQNames.add(qName);\r
128         cls = java.lang.String[].class;\r
129         cachedSerClasses.add(cls);\r
130         cachedSerFactories.add(arraysf);\r
131         cachedDeserFactories.add(arraydf);\r
132 \r
133         qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");\r
134         cachedSerQNames.add(qName);\r
135         cls = vamsas.objects.simple.Result.class;\r
136         cachedSerClasses.add(cls);\r
137         cachedSerFactories.add(beansf);\r
138         cachedDeserFactories.add(beandf);\r
139     }\r
140 \r
141     private static void _initOperationDesc1() {\r
142         org.apache.axis.description.OperationDesc oper;\r
143         oper = new org.apache.axis.description.OperationDesc();\r
144         oper.setName("align");\r
145         oper.addParameter(new javax.xml.namespace.QName("", "seqSet"),\r
146             new javax.xml.namespace.QName("simple.objects.vamsas", "SequenceSet"),\r
147             vamsas.objects.simple.SequenceSet.class,\r
148             org.apache.axis.description.ParameterDesc.IN, false, false);\r
149         oper.setReturnType(new javax.xml.namespace.QName(\r
150                 "simple.objects.vamsas", "WsJobId"));\r
151         oper.setReturnClass(vamsas.objects.simple.WsJobId.class);\r
152         oper.setReturnQName(new javax.xml.namespace.QName("", "alignReturn"));\r
153         oper.setStyle(org.apache.axis.constants.Style.RPC);\r
154         oper.setUse(org.apache.axis.constants.Use.ENCODED);\r
155         _operations[0] = oper;\r
156 \r
157         oper = new org.apache.axis.description.OperationDesc();\r
158         oper.setName("getalign");\r
159         oper.addParameter(new javax.xml.namespace.QName("", "job_id"),\r
160             new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",\r
161                 "string"), java.lang.String.class,\r
162             org.apache.axis.description.ParameterDesc.IN, false, false);\r
163         oper.setReturnType(new javax.xml.namespace.QName(\r
164                 "simple.objects.vamsas", "Alignment"));\r
165         oper.setReturnClass(vamsas.objects.simple.Alignment.class);\r
166         oper.setReturnQName(new javax.xml.namespace.QName("", "getalignReturn"));\r
167         oper.setStyle(org.apache.axis.constants.Style.RPC);\r
168         oper.setUse(org.apache.axis.constants.Use.ENCODED);\r
169         _operations[1] = oper;\r
170 \r
171         oper = new org.apache.axis.description.OperationDesc();\r
172         oper.setName("getResult");\r
173         oper.addParameter(new javax.xml.namespace.QName("", "job_id"),\r
174             new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",\r
175                 "string"), java.lang.String.class,\r
176             org.apache.axis.description.ParameterDesc.IN, false, false);\r
177         oper.setReturnType(new javax.xml.namespace.QName(\r
178                 "simple.objects.vamsas", "MsaResult"));\r
179         oper.setReturnClass(vamsas.objects.simple.MsaResult.class);\r
180         oper.setReturnQName(new javax.xml.namespace.QName("", "getResultReturn"));\r
181         oper.setStyle(org.apache.axis.constants.Style.RPC);\r
182         oper.setUse(org.apache.axis.constants.Use.ENCODED);\r
183         _operations[2] = oper;\r
184 \r
185         oper = new org.apache.axis.description.OperationDesc();\r
186         oper.setName("cancel");\r
187         oper.addParameter(new javax.xml.namespace.QName("", "jobId"),\r
188             new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema",\r
189                 "string"), java.lang.String.class,\r
190             org.apache.axis.description.ParameterDesc.IN, false, false);\r
191         oper.setReturnType(new javax.xml.namespace.QName(\r
192                 "simple.objects.vamsas", "WsJobId"));\r
193         oper.setReturnClass(vamsas.objects.simple.WsJobId.class);\r
194         oper.setReturnQName(new javax.xml.namespace.QName("", "cancelReturn"));\r
195         oper.setStyle(org.apache.axis.constants.Style.RPC);\r
196         oper.setUse(org.apache.axis.constants.Use.ENCODED);\r
197         _operations[3] = oper;\r
198     }\r
199 \r
200     protected org.apache.axis.client.Call createCall()\r
201         throws java.rmi.RemoteException {\r
202         try {\r
203             org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service.createCall();\r
204 \r
205             if (super.maintainSessionSet) {\r
206                 _call.setMaintainSession(super.maintainSession);\r
207             }\r
208 \r
209             if (super.cachedUsername != null) {\r
210                 _call.setUsername(super.cachedUsername);\r
211             }\r
212 \r
213             if (super.cachedPassword != null) {\r
214                 _call.setPassword(super.cachedPassword);\r
215             }\r
216 \r
217             if (super.cachedEndpoint != null) {\r
218                 _call.setTargetEndpointAddress(super.cachedEndpoint);\r
219             }\r
220 \r
221             if (super.cachedTimeout != null) {\r
222                 _call.setTimeout(super.cachedTimeout);\r
223             }\r
224 \r
225             if (super.cachedPortName != null) {\r
226                 _call.setPortName(super.cachedPortName);\r
227             }\r
228 \r
229             java.util.Enumeration keys = super.cachedProperties.keys();\r
230 \r
231             while (keys.hasMoreElements()) {\r
232                 java.lang.String key = (java.lang.String) keys.nextElement();\r
233                 _call.setProperty(key, super.cachedProperties.get(key));\r
234             }\r
235 \r
236             // All the type mapping information is registered\r
237             // when the first call is made.\r
238             // The type mapping information is actually registered in\r
239             // the TypeMappingRegistry of the service, which\r
240             // is the reason why registration is only needed for the first call.\r
241             synchronized (this) {\r
242                 if (firstCall()) {\r
243                     // must set encoding style before registering serializers\r
244                     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
245                     _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);\r
246 \r
247                     for (int i = 0; i < cachedSerFactories.size(); ++i) {\r
248                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);\r
249                         javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames.get(i);\r
250                         java.lang.Class sf = (java.lang.Class) cachedSerFactories.get(i);\r
251                         java.lang.Class df = (java.lang.Class) cachedDeserFactories.get(i);\r
252                         _call.registerTypeMapping(cls, qName, sf, df, false);\r
253                     }\r
254                 }\r
255             }\r
256 \r
257             return _call;\r
258         } catch (java.lang.Throwable _t) {\r
259             throw new org.apache.axis.AxisFault("Failure trying to get the Call object",\r
260                 _t);\r
261         }\r
262     }\r
263 \r
264     public vamsas.objects.simple.WsJobId align(\r
265         vamsas.objects.simple.SequenceSet seqSet)\r
266         throws java.rmi.RemoteException {\r
267         if (super.cachedEndpoint == null) {\r
268             throw new org.apache.axis.NoEndPointException();\r
269         }\r
270 \r
271         org.apache.axis.client.Call _call = createCall();\r
272         _call.setOperation(_operations[0]);\r
273         _call.setUseSOAPAction(true);\r
274         _call.setSOAPActionURI("");\r
275         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
276         _call.setOperationName(new javax.xml.namespace.QName("vamsas", "align"));\r
277 \r
278         setRequestHeaders(_call);\r
279         setAttachments(_call);\r
280 \r
281         java.lang.Object _resp = _call.invoke(new java.lang.Object[] { seqSet });\r
282 \r
283         if (_resp instanceof java.rmi.RemoteException) {\r
284             throw (java.rmi.RemoteException) _resp;\r
285         } else {\r
286             extractAttachments(_call);\r
287 \r
288             try {\r
289                 return (vamsas.objects.simple.WsJobId) _resp;\r
290             } catch (java.lang.Exception _exception) {\r
291                 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils.convert(_resp,\r
292                     vamsas.objects.simple.WsJobId.class);\r
293             }\r
294         }\r
295     }\r
296 \r
297     public vamsas.objects.simple.Alignment getalign(java.lang.String job_id)\r
298         throws java.rmi.RemoteException {\r
299         if (super.cachedEndpoint == null) {\r
300             throw new org.apache.axis.NoEndPointException();\r
301         }\r
302 \r
303         org.apache.axis.client.Call _call = createCall();\r
304         _call.setOperation(_operations[1]);\r
305         _call.setUseSOAPAction(true);\r
306         _call.setSOAPActionURI("");\r
307         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
308         _call.setOperationName(new javax.xml.namespace.QName("vamsas",\r
309                 "getalign"));\r
310 \r
311         setRequestHeaders(_call);\r
312         setAttachments(_call);\r
313 \r
314         java.lang.Object _resp = _call.invoke(new java.lang.Object[] { job_id });\r
315 \r
316         if (_resp instanceof java.rmi.RemoteException) {\r
317             throw (java.rmi.RemoteException) _resp;\r
318         } else {\r
319             extractAttachments(_call);\r
320 \r
321             try {\r
322                 return (vamsas.objects.simple.Alignment) _resp;\r
323             } catch (java.lang.Exception _exception) {\r
324                 return (vamsas.objects.simple.Alignment) org.apache.axis.utils.JavaUtils.convert(_resp,\r
325                     vamsas.objects.simple.Alignment.class);\r
326             }\r
327         }\r
328     }\r
329 \r
330     public vamsas.objects.simple.MsaResult getResult(java.lang.String job_id)\r
331         throws java.rmi.RemoteException {\r
332         if (super.cachedEndpoint == null) {\r
333             throw new org.apache.axis.NoEndPointException();\r
334         }\r
335 \r
336         org.apache.axis.client.Call _call = createCall();\r
337         _call.setOperation(_operations[2]);\r
338         _call.setUseSOAPAction(true);\r
339         _call.setSOAPActionURI("");\r
340         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
341         _call.setOperationName(new javax.xml.namespace.QName("vamsas",\r
342                 "getResult"));\r
343 \r
344         setRequestHeaders(_call);\r
345         setAttachments(_call);\r
346 \r
347         java.lang.Object _resp = _call.invoke(new java.lang.Object[] { job_id });\r
348 \r
349         if (_resp instanceof java.rmi.RemoteException) {\r
350             throw (java.rmi.RemoteException) _resp;\r
351         } else {\r
352             extractAttachments(_call);\r
353 \r
354             try {\r
355                 return (vamsas.objects.simple.MsaResult) _resp;\r
356             } catch (java.lang.Exception _exception) {\r
357                 return (vamsas.objects.simple.MsaResult) org.apache.axis.utils.JavaUtils.convert(_resp,\r
358                     vamsas.objects.simple.MsaResult.class);\r
359             }\r
360         }\r
361     }\r
362 \r
363     public vamsas.objects.simple.WsJobId cancel(java.lang.String jobId)\r
364         throws java.rmi.RemoteException {\r
365         if (super.cachedEndpoint == null) {\r
366             throw new org.apache.axis.NoEndPointException();\r
367         }\r
368 \r
369         org.apache.axis.client.Call _call = createCall();\r
370         _call.setOperation(_operations[3]);\r
371         _call.setUseSOAPAction(true);\r
372         _call.setSOAPActionURI("");\r
373         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
374         _call.setOperationName(new javax.xml.namespace.QName("vamsas", "cancel"));\r
375 \r
376         setRequestHeaders(_call);\r
377         setAttachments(_call);\r
378 \r
379         java.lang.Object _resp = _call.invoke(new java.lang.Object[] { jobId });\r
380 \r
381         if (_resp instanceof java.rmi.RemoteException) {\r
382             throw (java.rmi.RemoteException) _resp;\r
383         } else {\r
384             extractAttachments(_call);\r
385 \r
386             try {\r
387                 return (vamsas.objects.simple.WsJobId) _resp;\r
388             } catch (java.lang.Exception _exception) {\r
389                 return (vamsas.objects.simple.WsJobId) org.apache.axis.utils.JavaUtils.convert(_resp,\r
390                     vamsas.objects.simple.WsJobId.class);\r
391             }\r
392         }\r
393     }\r
394 }\r