2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 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.
23 public class JpredSoapBindingStub extends org.apache.axis.client.Stub
24 implements ext.vamsas.Jpred
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 static org.apache.axis.description.OperationDesc[] _operations;
38 _operations = new org.apache.axis.description.OperationDesc[4];
39 _initOperationDesc1();
42 private static void _initOperationDesc1()
44 org.apache.axis.description.OperationDesc oper;
45 oper = new org.apache.axis.description.OperationDesc();
46 oper.setName("predict");
47 oper.addParameter(new javax.xml.namespace.QName("", "seq"),
48 new javax.xml.namespace.QName("simple.objects.vamsas",
49 "Sequence"), vamsas.objects.simple.Sequence.class,
50 org.apache.axis.description.ParameterDesc.IN, false, false);
51 oper.setReturnType(new javax.xml.namespace.QName(
52 "http://www.w3.org/2001/XMLSchema", "string"));
53 oper.setReturnClass(java.lang.String.class);
54 oper.setReturnQName(new javax.xml.namespace.QName("", "predictReturn"));
55 oper.setStyle(org.apache.axis.constants.Style.RPC);
56 oper.setUse(org.apache.axis.constants.Use.ENCODED);
57 _operations[0] = oper;
59 oper = new org.apache.axis.description.OperationDesc();
60 oper.setName("predictOnMsa");
61 oper.addParameter(new javax.xml.namespace.QName("", "msf"),
62 new javax.xml.namespace.QName("http://simple.objects.vamsas",
64 vamsas.objects.simple.Msfalignment.class,
65 org.apache.axis.description.ParameterDesc.IN, false, false);
66 oper.setReturnType(new javax.xml.namespace.QName(
67 "http://www.w3.org/2001/XMLSchema", "string"));
68 oper.setReturnClass(java.lang.String.class);
69 oper.setReturnQName(new javax.xml.namespace.QName("",
70 "predictOnMsaReturn"));
71 oper.setStyle(org.apache.axis.constants.Style.RPC);
72 oper.setUse(org.apache.axis.constants.Use.ENCODED);
73 _operations[1] = oper;
75 oper = new org.apache.axis.description.OperationDesc();
76 oper.setName("getpredict");
77 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
78 new javax.xml.namespace.QName(
79 "http://www.w3.org/2001/XMLSchema", "string"),
80 java.lang.String.class,
81 org.apache.axis.description.ParameterDesc.IN, false, false);
82 oper.setReturnType(new javax.xml.namespace.QName(
83 "http://simple.objects.vamsas", "Secstructpred"));
84 oper.setReturnClass(vamsas.objects.simple.Secstructpred.class);
85 oper.setReturnQName(new javax.xml.namespace.QName("",
87 oper.setStyle(org.apache.axis.constants.Style.RPC);
88 oper.setUse(org.apache.axis.constants.Use.ENCODED);
89 _operations[2] = oper;
91 oper = new org.apache.axis.description.OperationDesc();
92 oper.setName("getresult");
93 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
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 "http://simple.objects.vamsas", "JpredResult"));
100 oper.setReturnClass(vamsas.objects.simple.JpredResult.class);
101 oper.setReturnQName(new javax.xml.namespace.QName("", "getresultReturn"));
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
240 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
241 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
242 for (int i = 0; i < cachedSerFactories.size(); ++i)
244 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
245 javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
247 java.lang.Class sf = (java.lang.Class) cachedSerFactories
249 java.lang.Class df = (java.lang.Class) cachedDeserFactories
251 _call.registerTypeMapping(cls, qName, sf, df, false);
256 } catch (java.lang.Throwable _t)
258 throw new org.apache.axis.AxisFault(
259 "Failure trying to get the Call object", _t);
263 public java.lang.String predict(vamsas.objects.simple.Sequence seq)
264 throws java.rmi.RemoteException
266 if (super.cachedEndpoint == null)
268 throw new org.apache.axis.NoEndPointException();
270 org.apache.axis.client.Call _call = createCall();
271 _call.setOperation(_operations[0]);
272 _call.setUseSOAPAction(true);
273 _call.setSOAPActionURI("");
274 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
275 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
278 setRequestHeaders(_call);
279 setAttachments(_call);
280 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
283 if (_resp instanceof java.rmi.RemoteException)
285 throw (java.rmi.RemoteException) _resp;
289 extractAttachments(_call);
292 return (java.lang.String) _resp;
293 } catch (java.lang.Exception _exception)
295 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
296 _resp, java.lang.String.class);
301 public java.lang.String predictOnMsa(
302 vamsas.objects.simple.Msfalignment msf)
303 throws java.rmi.RemoteException
305 if (super.cachedEndpoint == null)
307 throw new org.apache.axis.NoEndPointException();
309 org.apache.axis.client.Call _call = createCall();
310 _call.setOperation(_operations[1]);
311 _call.setUseSOAPAction(true);
312 _call.setSOAPActionURI("");
313 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
314 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
317 setRequestHeaders(_call);
318 setAttachments(_call);
319 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
322 if (_resp instanceof java.rmi.RemoteException)
324 throw (java.rmi.RemoteException) _resp;
328 extractAttachments(_call);
331 return (java.lang.String) _resp;
332 } catch (java.lang.Exception _exception)
334 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(
335 _resp, java.lang.String.class);
340 public vamsas.objects.simple.Secstructpred getpredict(
341 java.lang.String job_id) throws java.rmi.RemoteException
343 if (super.cachedEndpoint == null)
345 throw new org.apache.axis.NoEndPointException();
347 org.apache.axis.client.Call _call = createCall();
348 _call.setOperation(_operations[2]);
349 _call.setUseSOAPAction(true);
350 _call.setSOAPActionURI("");
351 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
352 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
355 setRequestHeaders(_call);
356 setAttachments(_call);
357 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
360 if (_resp instanceof java.rmi.RemoteException)
362 throw (java.rmi.RemoteException) _resp;
366 extractAttachments(_call);
369 return (vamsas.objects.simple.Secstructpred) _resp;
370 } catch (java.lang.Exception _exception)
372 return (vamsas.objects.simple.Secstructpred) org.apache.axis.utils.JavaUtils
373 .convert(_resp, vamsas.objects.simple.Secstructpred.class);
378 public vamsas.objects.simple.JpredResult getresult(java.lang.String job_id)
379 throws java.rmi.RemoteException
381 if (super.cachedEndpoint == null)
383 throw new org.apache.axis.NoEndPointException();
385 org.apache.axis.client.Call _call = createCall();
386 _call.setOperation(_operations[3]);
387 _call.setUseSOAPAction(true);
388 _call.setSOAPActionURI("");
389 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
390 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
393 setRequestHeaders(_call);
394 setAttachments(_call);
395 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
398 if (_resp instanceof java.rmi.RemoteException)
400 throw (java.rmi.RemoteException) _resp;
404 extractAttachments(_call);
407 return (vamsas.objects.simple.JpredResult) _resp;
408 } catch (java.lang.Exception _exception)
410 return (vamsas.objects.simple.JpredResult) org.apache.axis.utils.JavaUtils
411 .convert(_resp, vamsas.objects.simple.JpredResult.class);