mosueOver graph gives int, not float
[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 WSDL2Java emitter.
6  */
7
8 package ext.vamsas;
9
10 public class JpredSoapBindingStub extends org.apache.axis.client.Stub implements ext.vamsas.JPredWS {
11     private java.util.Vector cachedSerClasses = new java.util.Vector();
12     private java.util.Vector cachedSerQNames = new java.util.Vector();
13     private java.util.Vector cachedSerFactories = new java.util.Vector();
14     private java.util.Vector cachedDeserFactories = new java.util.Vector();
15
16     static org.apache.axis.description.OperationDesc [] _operations;
17
18     static {
19         _operations = new org.apache.axis.description.OperationDesc[2];
20         org.apache.axis.description.OperationDesc oper;
21         oper = new org.apache.axis.description.OperationDesc();
22         oper.setName("predict");
23         oper.addParameter(new javax.xml.namespace.QName("vamsas", "in0"), new javax.xml.namespace.QName("http://dataTypes.vamsas", "Sequence"), ext.vamsas.Sequence.class, org.apache.axis.description.ParameterDesc.IN, false, false);
24         oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
25         oper.setReturnClass(java.lang.String.class);
26         oper.setReturnQName(new javax.xml.namespace.QName("vamsas", "predictReturn"));
27         oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
28         oper.setUse(org.apache.axis.enum.Use.LITERAL);
29         _operations[0] = oper;
30
31         oper = new org.apache.axis.description.OperationDesc();
32         oper.setName("getpredict");
33         oper.addParameter(new javax.xml.namespace.QName("vamsas", "in0"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
34         oper.setReturnType(new javax.xml.namespace.QName("http://dataTypes.vamsas", "Secstructpred"));
35         oper.setReturnClass(ext.vamsas.Secstructpred.class);
36         oper.setReturnQName(new javax.xml.namespace.QName("vamsas", "getpredictReturn"));
37         oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
38         oper.setUse(org.apache.axis.enum.Use.LITERAL);
39         _operations[1] = oper;
40
41     }
42
43     public JpredSoapBindingStub() throws org.apache.axis.AxisFault {
44          this(null);
45     }
46
47     public JpredSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
48          this(service);
49          super.cachedEndpoint = endpointURL;
50     }
51
52     public JpredSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
53         if (service == null) {
54             super.service = new org.apache.axis.client.Service();
55         } else {
56             super.service = service;
57         }
58             java.lang.Class cls;
59             javax.xml.namespace.QName qName;
60             java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
61             java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
62             java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
63             java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
64             java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
65             java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
66             java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
67             java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
68             qName = new javax.xml.namespace.QName("http://dataTypes.vamsas", "Sequence");
69             cachedSerQNames.add(qName);
70             cls = ext.vamsas.Sequence.class;
71             cachedSerClasses.add(cls);
72             cachedSerFactories.add(beansf);
73             cachedDeserFactories.add(beandf);
74
75             qName = new javax.xml.namespace.QName("http://dataTypes.vamsas", "Secstructpred");
76             cachedSerQNames.add(qName);
77             cls = ext.vamsas.Secstructpred.class;
78             cachedSerClasses.add(cls);
79             cachedSerFactories.add(beansf);
80             cachedDeserFactories.add(beandf);
81
82     }
83
84     private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
85         try {
86             org.apache.axis.client.Call _call =
87                     (org.apache.axis.client.Call) super.service.createCall();
88             if (super.maintainSessionSet) {
89                 _call.setMaintainSession(super.maintainSession);
90             }
91             if (super.cachedUsername != null) {
92                 _call.setUsername(super.cachedUsername);
93             }
94             if (super.cachedPassword != null) {
95                 _call.setPassword(super.cachedPassword);
96             }
97             if (super.cachedEndpoint != null) {
98                 _call.setTargetEndpointAddress(super.cachedEndpoint);
99             }
100             if (super.cachedTimeout != null) {
101                 _call.setTimeout(super.cachedTimeout);
102             }
103             if (super.cachedPortName != null) {
104                 _call.setPortName(super.cachedPortName);
105             }
106             java.util.Enumeration keys = super.cachedProperties.keys();
107             while (keys.hasMoreElements()) {
108                 java.lang.String key = (java.lang.String) keys.nextElement();
109                 _call.setProperty(key, super.cachedProperties.get(key));
110             }
111             // All the type mapping information is registered
112             // when the first call is made.
113             // The type mapping information is actually registered in
114             // the TypeMappingRegistry of the service, which
115             // is the reason why registration is only needed for the first call.
116             synchronized (this) {
117                 if (firstCall()) {
118                     // must set encoding style before registering serializers
119                     _call.setEncodingStyle(null);
120                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
121                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
122                         javax.xml.namespace.QName qName =
123                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
124                         java.lang.Class sf = (java.lang.Class)
125                                  cachedSerFactories.get(i);
126                         java.lang.Class df = (java.lang.Class)
127                                  cachedDeserFactories.get(i);
128                         _call.registerTypeMapping(cls, qName, sf, df, false);
129                     }
130                 }
131             }
132             return _call;
133         }
134         catch (java.lang.Throwable t) {
135             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
136         }
137     }
138
139     public java.lang.String predict(ext.vamsas.Sequence in0) throws java.rmi.RemoteException {
140         if (super.cachedEndpoint == null) {
141             throw new org.apache.axis.NoEndPointException();
142         }
143         org.apache.axis.client.Call _call = createCall();
144         _call.setOperation(_operations[0]);
145         _call.setUseSOAPAction(true);
146         _call.setSOAPActionURI("");
147         _call.setEncodingStyle(null);
148         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
149         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
150         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
151         _call.setOperationName(new javax.xml.namespace.QName("vamsas", "predict"));
152
153         setRequestHeaders(_call);
154         setAttachments(_call);
155         java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
156
157         if (_resp instanceof java.rmi.RemoteException) {
158             throw (java.rmi.RemoteException)_resp;
159         }
160         else {
161             extractAttachments(_call);
162             try {
163                 return (java.lang.String) _resp;
164             } catch (java.lang.Exception _exception) {
165                 return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
166             }
167         }
168     }
169
170     public ext.vamsas.Secstructpred getpredict(java.lang.String in0) throws java.rmi.RemoteException {
171         if (super.cachedEndpoint == null) {
172             throw new org.apache.axis.NoEndPointException();
173         }
174         org.apache.axis.client.Call _call = createCall();
175         _call.setOperation(_operations[1]);
176         _call.setUseSOAPAction(true);
177         _call.setSOAPActionURI("");
178         _call.setEncodingStyle(null);
179         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
180         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
181         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
182         _call.setOperationName(new javax.xml.namespace.QName("vamsas", "getpredict"));
183
184         setRequestHeaders(_call);
185         setAttachments(_call);
186         java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
187
188         if (_resp instanceof java.rmi.RemoteException) {
189             throw (java.rmi.RemoteException)_resp;
190         }
191         else {
192             extractAttachments(_call);
193             try {
194                 return (ext.vamsas.Secstructpred) _resp;
195             } catch (java.lang.Exception _exception) {
196                 return (ext.vamsas.Secstructpred) org.apache.axis.utils.JavaUtils.convert(_resp, ext.vamsas.Secstructpred.class);
197             }
198         }
199     }
200
201 }