View Javadoc

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