new features or newly shown group features are placed at top of feature stack
[jalview.git] / src / ext / vamsas / JpredSoapBindingStub.java
1 /**
2  * JpredSoapBindingStub.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  */
7
8 package ext.vamsas;
9
10 public class JpredSoapBindingStub
11     extends org.apache.axis.client.Stub implements ext.vamsas.Jpred
12 {
13   private java.util.Vector cachedSerClasses = new java.util.Vector();
14   private java.util.Vector cachedSerQNames = new java.util.Vector();
15   private java.util.Vector cachedSerFactories = new java.util.Vector();
16   private java.util.Vector cachedDeserFactories = new java.util.Vector();
17
18   static org.apache.axis.description.OperationDesc[] _operations;
19
20   static
21   {
22     _operations = new org.apache.axis.description.OperationDesc[4];
23     _initOperationDesc1();
24   }
25
26   private static void _initOperationDesc1()
27   {
28     org.apache.axis.description.OperationDesc oper;
29     oper = new org.apache.axis.description.OperationDesc();
30     oper.setName("predict");
31     oper.addParameter(new javax.xml.namespace.QName("", "seq"),
32                       new javax.xml.
33                       namespace.QName("simple.objects.vamsas", "Sequence"),
34                       vamsas.objects.simple.Sequence.class,
35                       org.apache.axis.description.ParameterDesc.IN, false, false);
36     oper.setReturnType(new javax.xml.namespace.QName(
37         "http://www.w3.org/2001/XMLSchema", "string"));
38     oper.setReturnClass(java.lang.String.class);
39     oper.setReturnQName(new javax.xml.namespace.QName("", "predictReturn"));
40     oper.setStyle(org.apache.axis.constants.Style.RPC);
41     oper.setUse(org.apache.axis.constants.Use.ENCODED);
42     _operations[0] = oper;
43
44     oper = new org.apache.axis.description.OperationDesc();
45     oper.setName("predictOnMsa");
46     oper.addParameter(new javax.xml.namespace.QName("", "msf"),
47                       new javax.xml.
48                       namespace.QName("http://simple.objects.vamsas",
49                                       "Msfalignment"),
50                       vamsas.objects.simple.Msfalignment.class,
51                       org.apache.axis.description.ParameterDesc.IN, false, false);
52     oper.setReturnType(new javax.xml.namespace.QName(
53         "http://www.w3.org/2001/XMLSchema", "string"));
54     oper.setReturnClass(java.lang.String.class);
55     oper.setReturnQName(new javax.xml.namespace.QName("", "predictOnMsaReturn"));
56     oper.setStyle(org.apache.axis.constants.Style.RPC);
57     oper.setUse(org.apache.axis.constants.Use.ENCODED);
58     _operations[1] = oper;
59
60     oper = new org.apache.axis.description.OperationDesc();
61     oper.setName("getpredict");
62     oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
63                       new javax.
64                       xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
65                                           "string"), java.lang.String.class,
66                       org.apache.axis.description.ParameterDesc.IN, false, false);
67     oper.setReturnType(new javax.xml.namespace.QName(
68         "http://simple.objects.vamsas", "Secstructpred"));
69     oper.setReturnClass(vamsas.objects.simple.Secstructpred.class);
70     oper.setReturnQName(new javax.xml.namespace.QName("", "getpredictReturn"));
71     oper.setStyle(org.apache.axis.constants.Style.RPC);
72     oper.setUse(org.apache.axis.constants.Use.ENCODED);
73     _operations[2] = oper;
74
75     oper = new org.apache.axis.description.OperationDesc();
76     oper.setName("getresult");
77     oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
78                       new javax.
79                       xml.namespace.QName("http://www.w3.org/2001/XMLSchema",
80                                           "string"), 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", "JpredResult"));
84     oper.setReturnClass(vamsas.objects.simple.JpredResult.class);
85     oper.setReturnQName(new javax.xml.namespace.QName("", "getresultReturn"));
86     oper.setStyle(org.apache.axis.constants.Style.RPC);
87     oper.setUse(org.apache.axis.constants.Use.ENCODED);
88     _operations[3] = oper;
89
90   }
91
92   public JpredSoapBindingStub()
93       throws org.apache.axis.AxisFault
94   {
95     this(null);
96   }
97
98   public JpredSoapBindingStub(java.net.URL endpointURL,
99                               javax.xml.rpc.Service service)
100       throws org.apache.axis.AxisFault
101   {
102     this(service);
103     super.cachedEndpoint = endpointURL;
104   }
105
106   public JpredSoapBindingStub(javax.xml.rpc.Service service)
107       throws org.apache.axis.AxisFault
108   {
109     if (service == null)
110     {
111       super.service = new org.apache.axis.client.Service();
112     }
113     else
114     {
115       super.service = service;
116     }
117     java.lang.Class cls;
118     javax.xml.namespace.QName qName;
119     java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
120     java.lang.Class beandf = org.apache.axis.encoding.ser.
121         BeanDeserializerFactory.class;
122     /*java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
123                  java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
124                  java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
125                  java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
126                  java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
127                  java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
128                  java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
129                  java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;*/
130     qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
131                                           "JpredResult");
132     cachedSerQNames.add(qName);
133     cls = vamsas.objects.simple.JpredResult.class;
134     cachedSerClasses.add(cls);
135     cachedSerFactories.add(beansf);
136     cachedDeserFactories.add(beandf);
137
138     qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Result");
139     cachedSerQNames.add(qName);
140     cls = vamsas.objects.simple.Result.class;
141     cachedSerClasses.add(cls);
142     cachedSerFactories.add(beansf);
143     cachedDeserFactories.add(beandf);
144
145     qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
146                                           "Secstructpred");
147     cachedSerQNames.add(qName);
148     cls = vamsas.objects.simple.Secstructpred.class;
149     cachedSerClasses.add(cls);
150     cachedSerFactories.add(beansf);
151     cachedDeserFactories.add(beandf);
152
153     qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
154                                           "Msfalignment");
155     cachedSerQNames.add(qName);
156     cls = vamsas.objects.simple.Msfalignment.class;
157     cachedSerClasses.add(cls);
158     cachedSerFactories.add(beansf);
159     cachedDeserFactories.add(beandf);
160
161     qName = new javax.xml.namespace.QName("simple.objects.vamsas", "Sequence");
162     cachedSerQNames.add(qName);
163     cls = vamsas.objects.simple.Sequence.class;
164     cachedSerClasses.add(cls);
165     cachedSerFactories.add(beansf);
166     cachedDeserFactories.add(beandf);
167
168   }
169
170   protected org.apache.axis.client.Call createCall()
171       throws java.rmi.RemoteException
172   {
173     try
174     {
175       org.apache.axis.client.Call _call =
176           (org.apache.axis.client.Call)super.service.createCall();
177       if (super.maintainSessionSet)
178       {
179         _call.setMaintainSession(super.maintainSession);
180       }
181       if (super.cachedUsername != null)
182       {
183         _call.setUsername(super.cachedUsername);
184       }
185       if (super.cachedPassword != null)
186       {
187         _call.setPassword(super.cachedPassword);
188       }
189       if (super.cachedEndpoint != null)
190       {
191         _call.setTargetEndpointAddress(super.cachedEndpoint);
192       }
193       if (super.cachedTimeout != null)
194       {
195         _call.setTimeout(super.cachedTimeout);
196       }
197       if (super.cachedPortName != null)
198       {
199         _call.setPortName(super.cachedPortName);
200       }
201       java.util.Enumeration keys = super.cachedProperties.keys();
202       while (keys.hasMoreElements())
203       {
204         java.lang.String key = (java.lang.String) keys.nextElement();
205         _call.setProperty(key, super.cachedProperties.get(key));
206       }
207       // All the type mapping information is registered
208       // when the first call is made.
209       // The type mapping information is actually registered in
210       // the TypeMappingRegistry of the service, which
211       // is the reason why registration is only needed for the first call.
212       synchronized (this)
213       {
214         if (firstCall())
215         {
216           // must set encoding style before registering serializers
217           _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.
218                                SOAP11_CONSTANTS);
219           _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
220           for (int i = 0; i < cachedSerFactories.size(); ++i)
221           {
222             java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
223             javax.xml.namespace.QName qName =
224                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
225             java.lang.Class sf = (java.lang.Class)
226                 cachedSerFactories.get(i);
227             java.lang.Class df = (java.lang.Class)
228                 cachedDeserFactories.get(i);
229             _call.registerTypeMapping(cls, qName, sf, df, false);
230           }
231         }
232       }
233       return _call;
234     }
235     catch (java.lang.Throwable _t)
236     {
237       throw new org.apache.axis.AxisFault(
238           "Failure trying to get the Call object", _t);
239     }
240   }
241
242   public java.lang.String predict(vamsas.objects.simple.Sequence seq)
243       throws java.rmi.RemoteException
244   {
245     if (super.cachedEndpoint == null)
246     {
247       throw new org.apache.axis.NoEndPointException();
248     }
249     org.apache.axis.client.Call _call = createCall();
250     _call.setOperation(_operations[0]);
251     _call.setUseSOAPAction(true);
252     _call.setSOAPActionURI("");
253     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
254     _call.setOperationName(new javax.xml.namespace.QName("vamsas", "predict"));
255
256     setRequestHeaders(_call);
257     setAttachments(_call);
258     java.lang.Object _resp = _call.invoke(new java.lang.Object[]
259                                           {seq});
260
261     if (_resp instanceof java.rmi.RemoteException)
262     {
263       throw (java.rmi.RemoteException) _resp;
264     }
265     else
266     {
267       extractAttachments(_call);
268       try
269       {
270         return (java.lang.String) _resp;
271       }
272       catch (java.lang.Exception _exception)
273       {
274         return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp,
275             java.lang.String.class);
276       }
277     }
278   }
279
280   public java.lang.String predictOnMsa(vamsas.objects.simple.Msfalignment msf)
281       throws java.rmi.RemoteException
282   {
283     if (super.cachedEndpoint == null)
284     {
285       throw new org.apache.axis.NoEndPointException();
286     }
287     org.apache.axis.client.Call _call = createCall();
288     _call.setOperation(_operations[1]);
289     _call.setUseSOAPAction(true);
290     _call.setSOAPActionURI("");
291     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
292     _call.setOperationName(new javax.xml.namespace.QName("vamsas",
293         "predictOnMsa"));
294
295     setRequestHeaders(_call);
296     setAttachments(_call);
297     java.lang.Object _resp = _call.invoke(new java.lang.Object[]
298                                           {msf});
299
300     if (_resp instanceof java.rmi.RemoteException)
301     {
302       throw (java.rmi.RemoteException) _resp;
303     }
304     else
305     {
306       extractAttachments(_call);
307       try
308       {
309         return (java.lang.String) _resp;
310       }
311       catch (java.lang.Exception _exception)
312       {
313         return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp,
314             java.lang.String.class);
315       }
316     }
317   }
318
319   public vamsas.objects.simple.Secstructpred getpredict(java.lang.String job_id)
320       throws java.rmi.RemoteException
321   {
322     if (super.cachedEndpoint == null)
323     {
324       throw new org.apache.axis.NoEndPointException();
325     }
326     org.apache.axis.client.Call _call = createCall();
327     _call.setOperation(_operations[2]);
328     _call.setUseSOAPAction(true);
329     _call.setSOAPActionURI("");
330     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
331     _call.setOperationName(new javax.xml.namespace.QName("vamsas", "getpredict"));
332
333     setRequestHeaders(_call);
334     setAttachments(_call);
335     java.lang.Object _resp = _call.invoke(new java.lang.Object[]
336                                           {job_id});
337
338     if (_resp instanceof java.rmi.RemoteException)
339     {
340       throw (java.rmi.RemoteException) _resp;
341     }
342     else
343     {
344       extractAttachments(_call);
345       try
346       {
347         return (vamsas.objects.simple.Secstructpred) _resp;
348       }
349       catch (java.lang.Exception _exception)
350       {
351         return (vamsas.objects.simple.Secstructpred) org.apache.axis.utils.
352             JavaUtils.convert(_resp, vamsas.objects.simple.Secstructpred.class);
353       }
354     }
355   }
356
357   public vamsas.objects.simple.JpredResult getresult(java.lang.String job_id)
358       throws java.rmi.RemoteException
359   {
360     if (super.cachedEndpoint == null)
361     {
362       throw new org.apache.axis.NoEndPointException();
363     }
364     org.apache.axis.client.Call _call = createCall();
365     _call.setOperation(_operations[3]);
366     _call.setUseSOAPAction(true);
367     _call.setSOAPActionURI("");
368     _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
369     _call.setOperationName(new javax.xml.namespace.QName("vamsas", "getresult"));
370
371     setRequestHeaders(_call);
372     setAttachments(_call);
373     java.lang.Object _resp = _call.invoke(new java.lang.Object[]
374                                           {job_id});
375
376     if (_resp instanceof java.rmi.RemoteException)
377     {
378       throw (java.rmi.RemoteException) _resp;
379     }
380     else
381     {
382       extractAttachments(_call);
383       try
384       {
385         return (vamsas.objects.simple.JpredResult) _resp;
386       }
387       catch (java.lang.Exception _exception)
388       {
389         return (vamsas.objects.simple.JpredResult) org.apache.axis.utils.
390             JavaUtils.convert(_resp, vamsas.objects.simple.JpredResult.class);
391       }
392     }
393   }
394
395 }