2 * JpredSoapBindingStub.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
10 public class JpredSoapBindingStub
11 extends org.apache.axis.client.Stub implements ext.vamsas.Jpred
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();
18 static org.apache.axis.description.OperationDesc[] _operations;
22 _operations = new org.apache.axis.description.OperationDesc[4];
23 _initOperationDesc1();
26 private static void _initOperationDesc1()
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"),
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;
44 oper = new org.apache.axis.description.OperationDesc();
45 oper.setName("predictOnMsa");
46 oper.addParameter(new javax.xml.namespace.QName("", "msf"),
48 namespace.QName("http://simple.objects.vamsas",
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;
60 oper = new org.apache.axis.description.OperationDesc();
61 oper.setName("getpredict");
62 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
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;
75 oper = new org.apache.axis.description.OperationDesc();
76 oper.setName("getresult");
77 oper.addParameter(new javax.xml.namespace.QName("", "job_id"),
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;
92 public JpredSoapBindingStub()
93 throws org.apache.axis.AxisFault
98 public JpredSoapBindingStub(java.net.URL endpointURL,
99 javax.xml.rpc.Service service)
100 throws org.apache.axis.AxisFault
103 super.cachedEndpoint = endpointURL;
106 public JpredSoapBindingStub(javax.xml.rpc.Service service)
107 throws org.apache.axis.AxisFault
111 super.service = new org.apache.axis.client.Service();
115 super.service = service;
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",
132 cachedSerQNames.add(qName);
133 cls = vamsas.objects.simple.JpredResult.class;
134 cachedSerClasses.add(cls);
135 cachedSerFactories.add(beansf);
136 cachedDeserFactories.add(beandf);
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);
145 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
147 cachedSerQNames.add(qName);
148 cls = vamsas.objects.simple.Secstructpred.class;
149 cachedSerClasses.add(cls);
150 cachedSerFactories.add(beansf);
151 cachedDeserFactories.add(beandf);
153 qName = new javax.xml.namespace.QName("http://simple.objects.vamsas",
155 cachedSerQNames.add(qName);
156 cls = vamsas.objects.simple.Msfalignment.class;
157 cachedSerClasses.add(cls);
158 cachedSerFactories.add(beansf);
159 cachedDeserFactories.add(beandf);
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);
170 protected org.apache.axis.client.Call createCall()
171 throws java.rmi.RemoteException
175 org.apache.axis.client.Call _call =
176 (org.apache.axis.client.Call)super.service.createCall();
177 if (super.maintainSessionSet)
179 _call.setMaintainSession(super.maintainSession);
181 if (super.cachedUsername != null)
183 _call.setUsername(super.cachedUsername);
185 if (super.cachedPassword != null)
187 _call.setPassword(super.cachedPassword);
189 if (super.cachedEndpoint != null)
191 _call.setTargetEndpointAddress(super.cachedEndpoint);
193 if (super.cachedTimeout != null)
195 _call.setTimeout(super.cachedTimeout);
197 if (super.cachedPortName != null)
199 _call.setPortName(super.cachedPortName);
201 java.util.Enumeration keys = super.cachedProperties.keys();
202 while (keys.hasMoreElements())
204 java.lang.String key = (java.lang.String) keys.nextElement();
205 _call.setProperty(key, super.cachedProperties.get(key));
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.
216 // must set encoding style before registering serializers
217 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.
219 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
220 for (int i = 0; i < cachedSerFactories.size(); ++i)
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);
235 catch (java.lang.Throwable _t)
237 throw new org.apache.axis.AxisFault(
238 "Failure trying to get the Call object", _t);
242 public java.lang.String predict(vamsas.objects.simple.Sequence seq)
243 throws java.rmi.RemoteException
245 if (super.cachedEndpoint == null)
247 throw new org.apache.axis.NoEndPointException();
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"));
256 setRequestHeaders(_call);
257 setAttachments(_call);
258 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
261 if (_resp instanceof java.rmi.RemoteException)
263 throw (java.rmi.RemoteException) _resp;
267 extractAttachments(_call);
270 return (java.lang.String) _resp;
272 catch (java.lang.Exception _exception)
274 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp,
275 java.lang.String.class);
280 public java.lang.String predictOnMsa(vamsas.objects.simple.Msfalignment msf)
281 throws java.rmi.RemoteException
283 if (super.cachedEndpoint == null)
285 throw new org.apache.axis.NoEndPointException();
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",
295 setRequestHeaders(_call);
296 setAttachments(_call);
297 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
300 if (_resp instanceof java.rmi.RemoteException)
302 throw (java.rmi.RemoteException) _resp;
306 extractAttachments(_call);
309 return (java.lang.String) _resp;
311 catch (java.lang.Exception _exception)
313 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp,
314 java.lang.String.class);
319 public vamsas.objects.simple.Secstructpred getpredict(java.lang.String job_id)
320 throws java.rmi.RemoteException
322 if (super.cachedEndpoint == null)
324 throw new org.apache.axis.NoEndPointException();
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"));
333 setRequestHeaders(_call);
334 setAttachments(_call);
335 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
338 if (_resp instanceof java.rmi.RemoteException)
340 throw (java.rmi.RemoteException) _resp;
344 extractAttachments(_call);
347 return (vamsas.objects.simple.Secstructpred) _resp;
349 catch (java.lang.Exception _exception)
351 return (vamsas.objects.simple.Secstructpred) org.apache.axis.utils.
352 JavaUtils.convert(_resp, vamsas.objects.simple.Secstructpred.class);
357 public vamsas.objects.simple.JpredResult getresult(java.lang.String job_id)
358 throws java.rmi.RemoteException
360 if (super.cachedEndpoint == null)
362 throw new org.apache.axis.NoEndPointException();
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"));
371 setRequestHeaders(_call);
372 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);
385 return (vamsas.objects.simple.JpredResult) _resp;
387 catch (java.lang.Exception _exception)
389 return (vamsas.objects.simple.JpredResult) org.apache.axis.utils.
390 JavaUtils.convert(_resp, vamsas.objects.simple.JpredResult.class);