2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3 * Copyright (C) 2009 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
21 public class JpredSoapBindingStub extends org.apache.axis.client.Stub
22 implements ext.vamsas.Jpred
24 private java.util.Vector cachedSerClasses = new java.util.Vector();
26 private java.util.Vector cachedSerQNames = new java.util.Vector();
28 private java.util.Vector cachedSerFactories = new java.util.Vector();
30 private java.util.Vector cachedDeserFactories = new java.util.Vector();
32 static org.apache.axis.description.OperationDesc[] _operations;
36 _operations = new org.apache.axis.description.OperationDesc[4];
37 _initOperationDesc1();
40 private static void _initOperationDesc1()
42 org.apache.axis.description.OperationDesc oper;
43 oper = new org.apache.axis.description.OperationDesc();
44 oper.setName("predict");
45 oper.addParameter(new javax.xml.namespace.QName("", "seq"),
46 new javax.xml.namespace.QName("simple.objects.vamsas",
47 "Sequence"), vamsas.objects.simple.Sequence.class,
48 org.apache.axis.description.ParameterDesc.IN, false, false);
49 oper.setReturnType(new javax.xml.namespace.QName(
50 "http://www.w3.org/2001/XMLSchema", "string"));
51 oper.setReturnClass(java.lang.String.class);
52 oper.setReturnQName(new javax.xml.namespace.QName("", "predictReturn"));
53 oper.setStyle(org.apache.axis.constants.Style.RPC);
54 oper.setUse(org.apache.axis.constants.Use.ENCODED);
55 _operations[0] = oper;
57 oper = new org.apache.axis.description.OperationDesc();
58 oper.setName("predictOnMsa");
59 oper.addParameter(new javax.xml.namespace.QName("", "msf"),
60 new javax.xml.namespace.QName("http://simple.objects.vamsas",
62 vamsas.objects.simple.Msfalignment.class,
63 org.apache.axis.description.ParameterDesc.IN, false, false);
64 oper.setReturnType(new javax.xml.namespace.QName(
65 "http://www.w3.org/2001/XMLSchema", "string"));
66 oper.setReturnClass(java.lang.String.class);
67 oper.setReturnQName(new javax.xml.namespace.QName("",
68 "predictOnMsaReturn"));
69 oper.setStyle(org.apache.axis.constants.Style.RPC);
70 oper.setUse(org.apache.axis.constants.Use.ENCODED);
71 _operations[1] = oper;
73 oper = new org.apache.axis.description.OperationDesc();
74 oper.setName("getpredict");
75 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
76 new javax.xml.namespace.QName(
77 "http://www.w3.org/2001/XMLSchema", "string"),
78 java.lang.String.class,
79 org.apache.axis.description.ParameterDesc.IN, false, false);
80 oper.setReturnType(new javax.xml.namespace.QName(
81 "http://simple.objects.vamsas", "Secstructpred"));
82 oper.setReturnClass(vamsas.objects.simple.Secstructpred.class);
83 oper.setReturnQName(new javax.xml.namespace.QName("",
85 oper.setStyle(org.apache.axis.constants.Style.RPC);
86 oper.setUse(org.apache.axis.constants.Use.ENCODED);
87 _operations[2] = oper;
89 oper = new org.apache.axis.description.OperationDesc();
90 oper.setName("getresult");
91 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
92 new javax.xml.namespace.QName(
93 "http://www.w3.org/2001/XMLSchema", "string"),
94 java.lang.String.class,
95 org.apache.axis.description.ParameterDesc.IN, false, false);
96 oper.setReturnType(new javax.xml.namespace.QName(
97 "http://simple.objects.vamsas", "JpredResult"));
98 oper.setReturnClass(vamsas.objects.simple.JpredResult.class);
100 .setReturnQName(new javax.xml.namespace.QName("",
102 oper.setStyle(org.apache.axis.constants.Style.RPC);
103 oper.setUse(org.apache.axis.constants.Use.ENCODED);
104 _operations[3] = oper;
108 public JpredSoapBindingStub() throws org.apache.axis.AxisFault
113 public JpredSoapBindingStub(java.net.URL endpointURL,
114 javax.xml.rpc.Service service) throws org.apache.axis.AxisFault
117 super.cachedEndpoint = endpointURL;
120 public JpredSoapBindingStub(javax.xml.rpc.Service service)
121 throws org.apache.axis.AxisFault
125 super.service = new org.apache.axis.client.Service();
129 super.service = service;
132 javax.xml.namespace.QName qName;
133 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
134 java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
136 * java.lang.Class enumsf =
137 * org.apache.axis.encoding.ser.EnumSerializerFactory.class; java.lang.Class
138 * enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
139 * java.lang.Class arraysf =
140 * org.apache.axis.encoding.ser.ArraySerializerFactory.class;
141 * java.lang.Class arraydf =
142 * org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
143 * java.lang.Class simplesf =
144 * org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
145 * java.lang.Class simpledf =
146 * org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
147 * java.lang.Class simplelistsf =
148 * org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
149 * java.lang.Class simplelistdf =
150 * org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
152 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
154 cachedSerQNames.add(qName);
155 cls = vamsas.objects.simple.JpredResult.class;
156 cachedSerClasses.add(cls);
157 cachedSerFactories.add(beansf);
158 cachedDeserFactories.add(beandf);
160 qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");
161 cachedSerQNames.add(qName);
162 cls = vamsas.objects.simple.Result.class;
163 cachedSerClasses.add(cls);
164 cachedSerFactories.add(beansf);
165 cachedDeserFactories.add(beandf);
167 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
169 cachedSerQNames.add(qName);
170 cls = vamsas.objects.simple.Secstructpred.class;
171 cachedSerClasses.add(cls);
172 cachedSerFactories.add(beansf);
173 cachedDeserFactories.add(beandf);
175 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
177 cachedSerQNames.add(qName);
178 cls = vamsas.objects.simple.Msfalignment.class;
179 cachedSerClasses.add(cls);
180 cachedSerFactories.add(beansf);
181 cachedDeserFactories.add(beandf);
183 qName = new javax.xml.namespace.QName("simple.objects.vamsas",
185 cachedSerQNames.add(qName);
186 cls = vamsas.objects.simple.Sequence.class;
187 cachedSerClasses.add(cls);
188 cachedSerFactories.add(beansf);
189 cachedDeserFactories.add(beandf);
193 protected org.apache.axis.client.Call createCall()
194 throws java.rmi.RemoteException
198 org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service
200 if (super.maintainSessionSet)
202 _call.setMaintainSession(super.maintainSession);
204 if (super.cachedUsername != null)
206 _call.setUsername(super.cachedUsername);
208 if (super.cachedPassword != null)
210 _call.setPassword(super.cachedPassword);
212 if (super.cachedEndpoint != null)
214 _call.setTargetEndpointAddress(super.cachedEndpoint);
216 if (super.cachedTimeout != null)
218 _call.setTimeout(super.cachedTimeout);
220 if (super.cachedPortName != null)
222 _call.setPortName(super.cachedPortName);
224 java.util.Enumeration keys = super.cachedProperties.keys();
225 while (keys.hasMoreElements())
227 java.lang.String key = (java.lang.String) keys.nextElement();
228 _call.setProperty(key, super.cachedProperties.get(key));
230 // All the type mapping information is registered
231 // when the first call is made.
232 // The type mapping information is actually registered in
233 // the TypeMappingRegistry of the service, which
234 // is the reason why registration is only needed for the first call.
239 // must set encoding style before registering serializers
241 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
242 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
243 for (int i = 0; i < cachedSerFactories.size(); ++i)
245 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
246 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
248 java.lang.Class sf = (java.lang.Class) cachedSerFactories
250 java.lang.Class df = (java.lang.Class) cachedDeserFactories
252 _call.registerTypeMapping(cls, qName, sf, df, false);
257 } catch (java.lang.Throwable _t)
259 throw new org.apache.axis.AxisFault(
260 "Failure trying to get the Call object", _t);
264 public java.lang.String predict(vamsas.objects.simple.Sequence seq)
265 throws java.rmi.RemoteException
267 if (super.cachedEndpoint == null)
269 throw new org.apache.axis.NoEndPointException();
271 org.apache.axis.client.Call _call = createCall();
272 _call.setOperation(_operations[0]);
273 _call.setUseSOAPAction(true);
274 _call.setSOAPActionURI("");
276 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
277 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
280 setRequestHeaders(_call);
281 setAttachments(_call);
282 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
285 if (_resp instanceof java.rmi.RemoteException)
287 throw (java.rmi.RemoteException) _resp;
291 extractAttachments(_call);
294 return (java.lang.String) _resp;
295 } catch (java.lang.Exception _exception)
297 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
298 _resp, java.lang.String.class);
303 public java.lang.String predictOnMsa(
304 vamsas.objects.simple.Msfalignment msf)
305 throws java.rmi.RemoteException
307 if (super.cachedEndpoint == null)
309 throw new org.apache.axis.NoEndPointException();
311 org.apache.axis.client.Call _call = createCall();
312 _call.setOperation(_operations[1]);
313 _call.setUseSOAPAction(true);
314 _call.setSOAPActionURI("");
316 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
317 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
320 setRequestHeaders(_call);
321 setAttachments(_call);
322 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
325 if (_resp instanceof java.rmi.RemoteException)
327 throw (java.rmi.RemoteException) _resp;
331 extractAttachments(_call);
334 return (java.lang.String) _resp;
335 } catch (java.lang.Exception _exception)
337 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
338 _resp, java.lang.String.class);
343 public vamsas.objects.simple.Secstructpred getpredict(
344 java.lang.String job_id) throws java.rmi.RemoteException
346 if (super.cachedEndpoint == null)
348 throw new org.apache.axis.NoEndPointException();
350 org.apache.axis.client.Call _call = createCall();
351 _call.setOperation(_operations[2]);
352 _call.setUseSOAPAction(true);
353 _call.setSOAPActionURI("");
355 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
356 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
359 setRequestHeaders(_call);
360 setAttachments(_call);
361 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
364 if (_resp instanceof java.rmi.RemoteException)
366 throw (java.rmi.RemoteException) _resp;
370 extractAttachments(_call);
373 return (vamsas.objects.simple.Secstructpred) _resp;
374 } catch (java.lang.Exception _exception)
376 return (vamsas.objects.simple.Secstructpred) org.apache.axis.utils.JavaUtils
377 .convert(_resp, vamsas.objects.simple.Secstructpred.class);
382 public vamsas.objects.simple.JpredResult getresult(java.lang.String job_id)
383 throws java.rmi.RemoteException
385 if (super.cachedEndpoint == null)
387 throw new org.apache.axis.NoEndPointException();
389 org.apache.axis.client.Call _call = createCall();
390 _call.setOperation(_operations[3]);
391 _call.setUseSOAPAction(true);
392 _call.setSOAPActionURI("");
394 .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
395 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
398 setRequestHeaders(_call);
399 setAttachments(_call);
400 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
403 if (_resp instanceof java.rmi.RemoteException)
405 throw (java.rmi.RemoteException) _resp;
409 extractAttachments(_call);
412 return (vamsas.objects.simple.JpredResult) _resp;
413 } catch (java.lang.Exception _exception)
415 return (vamsas.objects.simple.JpredResult) org.apache.axis.utils.JavaUtils
416 .convert(_resp, vamsas.objects.simple.JpredResult.class);