View Javadoc

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