View Javadoc

1   /**
2    * SliderSvcPortStub.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.sirius.server.win32lib.controls.slider;
9   
10  public class SliderSvcPortStub extends org.apache.axis.client.Stub implements org.sirius.server.win32lib.controls.slider.ISliderContract {
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[6];
20          _initOperationDesc1();
21      }
22  
23      private static void _initOperationDesc1(){
24          org.apache.axis.description.OperationDesc oper;
25          org.apache.axis.description.ParameterDesc param;
26          oper = new org.apache.axis.description.OperationDesc();
27          oper.setName("GetLowerBound");
28          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
29          param.setOmittable(true);
30          oper.addParameter(param);
31          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
32          oper.setReturnClass(java.lang.Double.class);
33          oper.setReturnQName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetLowerBoundResult"));
34          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
35          oper.setUse(org.apache.axis.constants.Use.LITERAL);
36          _operations[0] = oper;
37  
38          oper = new org.apache.axis.description.OperationDesc();
39          oper.setName("GetPosition");
40          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
41          param.setOmittable(true);
42          oper.addParameter(param);
43          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
44          oper.setReturnClass(java.lang.Double.class);
45          oper.setReturnQName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetPositionResult"));
46          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
47          oper.setUse(org.apache.axis.constants.Use.LITERAL);
48          _operations[1] = oper;
49  
50          oper = new org.apache.axis.description.OperationDesc();
51          oper.setName("GetUpperBound");
52          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
53          param.setOmittable(true);
54          oper.addParameter(param);
55          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
56          oper.setReturnClass(java.lang.Double.class);
57          oper.setReturnQName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetUpperBoundResult"));
58          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
59          oper.setUse(org.apache.axis.constants.Use.LITERAL);
60          _operations[2] = oper;
61  
62          oper = new org.apache.axis.description.OperationDesc();
63          oper.setName("SetPosition");
64          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
65          param.setOmittable(true);
66          oper.addParameter(param);
67          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "pos"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"), java.lang.Double.class, false, false);
68          param.setOmittable(true);
69          oper.addParameter(param);
70          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
71          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
72          oper.setUse(org.apache.axis.constants.Use.LITERAL);
73          _operations[3] = oper;
74  
75          oper = new org.apache.axis.description.OperationDesc();
76          oper.setName("GetSmallStep");
77          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
78          param.setOmittable(true);
79          oper.addParameter(param);
80          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
81          oper.setReturnClass(java.lang.Double.class);
82          oper.setReturnQName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetSmallStepResult"));
83          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
84          oper.setUse(org.apache.axis.constants.Use.LITERAL);
85          _operations[4] = oper;
86  
87          oper = new org.apache.axis.description.OperationDesc();
88          oper.setName("GetLargeStep");
89          param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "hwnd"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), java.lang.Integer.class, false, false);
90          param.setOmittable(true);
91          oper.addParameter(param);
92          oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
93          oper.setReturnClass(java.lang.Double.class);
94          oper.setReturnQName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetLargeStepResult"));
95          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
96          oper.setUse(org.apache.axis.constants.Use.LITERAL);
97          _operations[5] = oper;
98  
99      }
100 
101     public SliderSvcPortStub() throws org.apache.axis.AxisFault {
102          this(null);
103     }
104 
105     public SliderSvcPortStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
106          this(service);
107          super.cachedEndpoint = endpointURL;
108     }
109 
110     public SliderSvcPortStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
111         if (service == null) {
112             super.service = new org.apache.axis.client.Service();
113         } else {
114             super.service = service;
115         }
116         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
117     }
118 
119     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
120         try {
121             org.apache.axis.client.Call _call = super._createCall();
122             if (super.maintainSessionSet) {
123                 _call.setMaintainSession(super.maintainSession);
124             }
125             if (super.cachedUsername != null) {
126                 _call.setUsername(super.cachedUsername);
127             }
128             if (super.cachedPassword != null) {
129                 _call.setPassword(super.cachedPassword);
130             }
131             if (super.cachedEndpoint != null) {
132                 _call.setTargetEndpointAddress(super.cachedEndpoint);
133             }
134             if (super.cachedTimeout != null) {
135                 _call.setTimeout(super.cachedTimeout);
136             }
137             if (super.cachedPortName != null) {
138                 _call.setPortName(super.cachedPortName);
139             }
140             java.util.Enumeration keys = super.cachedProperties.keys();
141             while (keys.hasMoreElements()) {
142                 java.lang.String key = (java.lang.String) keys.nextElement();
143                 _call.setProperty(key, super.cachedProperties.get(key));
144             }
145             return _call;
146         }
147         catch (java.lang.Throwable _t) {
148             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
149         }
150     }
151 
152     public java.lang.Double getLowerBound(java.lang.Integer hwnd) throws java.rmi.RemoteException {
153         if (super.cachedEndpoint == null) {
154             throw new org.apache.axis.NoEndPointException();
155         }
156         org.apache.axis.client.Call _call = createCall();
157         _call.setOperation(_operations[0]);
158         _call.setUseSOAPAction(true);
159         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/GetLowerBound");
160         _call.setEncodingStyle(null);
161         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
162         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
163         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
164         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetLowerBound"));
165 
166         setRequestHeaders(_call);
167         setAttachments(_call);
168  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd});
169 
170         if (_resp instanceof java.rmi.RemoteException) {
171             throw (java.rmi.RemoteException)_resp;
172         }
173         else {
174             extractAttachments(_call);
175             try {
176                 return (java.lang.Double) _resp;
177             } catch (java.lang.Exception _exception) {
178                 return (java.lang.Double) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Double.class);
179             }
180         }
181   } catch (org.apache.axis.AxisFault axisFaultException) {
182   throw axisFaultException;
183 }
184     }
185 
186     public java.lang.Double getPosition(java.lang.Integer hwnd) throws java.rmi.RemoteException {
187         if (super.cachedEndpoint == null) {
188             throw new org.apache.axis.NoEndPointException();
189         }
190         org.apache.axis.client.Call _call = createCall();
191         _call.setOperation(_operations[1]);
192         _call.setUseSOAPAction(true);
193         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/GetPosition");
194         _call.setEncodingStyle(null);
195         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
196         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
197         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
198         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetPosition"));
199 
200         setRequestHeaders(_call);
201         setAttachments(_call);
202  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd});
203 
204         if (_resp instanceof java.rmi.RemoteException) {
205             throw (java.rmi.RemoteException)_resp;
206         }
207         else {
208             extractAttachments(_call);
209             try {
210                 return (java.lang.Double) _resp;
211             } catch (java.lang.Exception _exception) {
212                 return (java.lang.Double) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Double.class);
213             }
214         }
215   } catch (org.apache.axis.AxisFault axisFaultException) {
216   throw axisFaultException;
217 }
218     }
219 
220     public java.lang.Double getUpperBound(java.lang.Integer hwnd) throws java.rmi.RemoteException {
221         if (super.cachedEndpoint == null) {
222             throw new org.apache.axis.NoEndPointException();
223         }
224         org.apache.axis.client.Call _call = createCall();
225         _call.setOperation(_operations[2]);
226         _call.setUseSOAPAction(true);
227         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/GetUpperBound");
228         _call.setEncodingStyle(null);
229         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
230         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
231         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
232         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetUpperBound"));
233 
234         setRequestHeaders(_call);
235         setAttachments(_call);
236  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd});
237 
238         if (_resp instanceof java.rmi.RemoteException) {
239             throw (java.rmi.RemoteException)_resp;
240         }
241         else {
242             extractAttachments(_call);
243             try {
244                 return (java.lang.Double) _resp;
245             } catch (java.lang.Exception _exception) {
246                 return (java.lang.Double) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Double.class);
247             }
248         }
249   } catch (org.apache.axis.AxisFault axisFaultException) {
250   throw axisFaultException;
251 }
252     }
253 
254     public void setPosition(java.lang.Integer hwnd, java.lang.Double pos) throws java.rmi.RemoteException {
255         if (super.cachedEndpoint == null) {
256             throw new org.apache.axis.NoEndPointException();
257         }
258         org.apache.axis.client.Call _call = createCall();
259         _call.setOperation(_operations[3]);
260         _call.setUseSOAPAction(true);
261         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/SetPosition");
262         _call.setEncodingStyle(null);
263         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
264         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
265         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
266         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "SetPosition"));
267 
268         setRequestHeaders(_call);
269         setAttachments(_call);
270  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd, pos});
271 
272         if (_resp instanceof java.rmi.RemoteException) {
273             throw (java.rmi.RemoteException)_resp;
274         }
275         extractAttachments(_call);
276   } catch (org.apache.axis.AxisFault axisFaultException) {
277   throw axisFaultException;
278 }
279     }
280 
281     public java.lang.Double getSmallStep(java.lang.Integer hwnd) throws java.rmi.RemoteException {
282         if (super.cachedEndpoint == null) {
283             throw new org.apache.axis.NoEndPointException();
284         }
285         org.apache.axis.client.Call _call = createCall();
286         _call.setOperation(_operations[4]);
287         _call.setUseSOAPAction(true);
288         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/GetSmallStep");
289         _call.setEncodingStyle(null);
290         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
291         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
292         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
293         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetSmallStep"));
294 
295         setRequestHeaders(_call);
296         setAttachments(_call);
297  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd});
298 
299         if (_resp instanceof java.rmi.RemoteException) {
300             throw (java.rmi.RemoteException)_resp;
301         }
302         else {
303             extractAttachments(_call);
304             try {
305                 return (java.lang.Double) _resp;
306             } catch (java.lang.Exception _exception) {
307                 return (java.lang.Double) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Double.class);
308             }
309         }
310   } catch (org.apache.axis.AxisFault axisFaultException) {
311   throw axisFaultException;
312 }
313     }
314 
315     public java.lang.Double getLargeStep(java.lang.Integer hwnd) throws java.rmi.RemoteException {
316         if (super.cachedEndpoint == null) {
317             throw new org.apache.axis.NoEndPointException();
318         }
319         org.apache.axis.client.Call _call = createCall();
320         _call.setOperation(_operations[5]);
321         _call.setUseSOAPAction(true);
322         _call.setSOAPActionURI("http://slider.controls.win32lib.server.sirius.org/ISliderContract/GetLargeStep");
323         _call.setEncodingStyle(null);
324         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
325         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
326         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
327         _call.setOperationName(new javax.xml.namespace.QName("http://slider.controls.win32lib.server.sirius.org/", "GetLargeStep"));
328 
329         setRequestHeaders(_call);
330         setAttachments(_call);
331  try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {hwnd});
332 
333         if (_resp instanceof java.rmi.RemoteException) {
334             throw (java.rmi.RemoteException)_resp;
335         }
336         else {
337             extractAttachments(_call);
338             try {
339                 return (java.lang.Double) _resp;
340             } catch (java.lang.Exception _exception) {
341                 return (java.lang.Double) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.Double.class);
342             }
343         }
344   } catch (org.apache.axis.AxisFault axisFaultException) {
345   throw axisFaultException;
346 }
347     }
348 
349 }