View Javadoc

1   /**
2    * TabSvcPortStub.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.tab;
9   
10  public class TabSvcPortStub extends org.apache.axis.client.Stub implements
11          org.sirius.server.win32lib.controls.tab.ITabContract {
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[6];
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("GetItemsCount");
29          param = new org.apache.axis.description.ParameterDesc(
30                  new javax.xml.namespace.QName(
31                          "http://tab.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(new javax.xml.namespace.QName(
39                  "http://www.w3.org/2001/XMLSchema", "int"));
40          oper.setReturnClass(java.lang.Integer.class);
41          oper.setReturnQName(new javax.xml.namespace.QName(
42                  "http://tab.controls.win32lib.server.sirius.org/", "ItemCount"));
43          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
44          oper.setUse(org.apache.axis.constants.Use.LITERAL);
45          _operations[0] = oper;
46  
47          oper = new org.apache.axis.description.OperationDesc();
48          oper.setName("GetSelectedIndex");
49          param = new org.apache.axis.description.ParameterDesc(
50                  new javax.xml.namespace.QName(
51                          "http://tab.controls.win32lib.server.sirius.org/",
52                          "hwnd"), org.apache.axis.description.ParameterDesc.IN,
53                  new javax.xml.namespace.QName(
54                          "http://www.w3.org/2001/XMLSchema", "int"),
55                  java.lang.Integer.class, false, false);
56          param.setOmittable(true);
57          oper.addParameter(param);
58          oper.setReturnType(new javax.xml.namespace.QName(
59                  "http://www.w3.org/2001/XMLSchema", "int"));
60          oper.setReturnClass(java.lang.Integer.class);
61          oper.setReturnQName(new javax.xml.namespace.QName(
62                  "http://tab.controls.win32lib.server.sirius.org/", "Index"));
63          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
64          oper.setUse(org.apache.axis.constants.Use.LITERAL);
65          _operations[1] = oper;
66  
67          oper = new org.apache.axis.description.OperationDesc();
68          oper.setName("GetSelectedItem");
69          param = new org.apache.axis.description.ParameterDesc(
70                  new javax.xml.namespace.QName(
71                          "http://tab.controls.win32lib.server.sirius.org/",
72                          "hwnd"), org.apache.axis.description.ParameterDesc.IN,
73                  new javax.xml.namespace.QName(
74                          "http://www.w3.org/2001/XMLSchema", "int"),
75                  java.lang.Integer.class, false, false);
76          param.setOmittable(true);
77          oper.addParameter(param);
78          oper.setReturnType(new javax.xml.namespace.QName(
79                  "http://www.w3.org/2001/XMLSchema", "string"));
80          oper.setReturnClass(java.lang.String.class);
81          oper.setReturnQName(new javax.xml.namespace.QName(
82                  "http://tab.controls.win32lib.server.sirius.org/",
83                  "SelectedItemName"));
84          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
85          oper.setUse(org.apache.axis.constants.Use.LITERAL);
86          _operations[2] = oper;
87  
88          oper = new org.apache.axis.description.OperationDesc();
89          oper.setName("GetItemNames");
90          param = new org.apache.axis.description.ParameterDesc(
91                  new javax.xml.namespace.QName(
92                          "http://tab.controls.win32lib.server.sirius.org/",
93                          "hwnd"), org.apache.axis.description.ParameterDesc.IN,
94                  new javax.xml.namespace.QName(
95                          "http://www.w3.org/2001/XMLSchema", "int"),
96                  java.lang.Integer.class, false, false);
97          param.setOmittable(true);
98          oper.addParameter(param);
99          oper.setReturnType(new javax.xml.namespace.QName(
100                 "http://schemas.microsoft.com/2003/10/Serialization/Arrays",
101                 "ArrayOfstring"));
102         oper.setReturnClass(java.lang.String[].class);
103         oper.setReturnQName(new javax.xml.namespace.QName(
104                 "http://tab.controls.win32lib.server.sirius.org/", "ItemNames"));
105         param = oper.getReturnParamDesc();
106         param.setItemQName(new javax.xml.namespace.QName(
107                 "http://schemas.microsoft.com/2003/10/Serialization/Arrays",
108                 "string"));
109         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
110         oper.setUse(org.apache.axis.constants.Use.LITERAL);
111         _operations[3] = oper;
112 
113         oper = new org.apache.axis.description.OperationDesc();
114         oper.setName("SelectByIndex");
115         param = new org.apache.axis.description.ParameterDesc(
116                 new javax.xml.namespace.QName(
117                         "http://tab.controls.win32lib.server.sirius.org/",
118                         "hwnd"), org.apache.axis.description.ParameterDesc.IN,
119                 new javax.xml.namespace.QName(
120                         "http://www.w3.org/2001/XMLSchema", "int"),
121                 java.lang.Integer.class, false, false);
122         param.setOmittable(true);
123         oper.addParameter(param);
124         param = new org.apache.axis.description.ParameterDesc(
125                 new javax.xml.namespace.QName(
126                         "http://tab.controls.win32lib.server.sirius.org/",
127                         "index"), org.apache.axis.description.ParameterDesc.IN,
128                 new javax.xml.namespace.QName(
129                         "http://www.w3.org/2001/XMLSchema", "int"),
130                 java.lang.Integer.class, false, false);
131         param.setOmittable(true);
132         oper.addParameter(param);
133         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
134         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
135         oper.setUse(org.apache.axis.constants.Use.LITERAL);
136         _operations[4] = oper;
137 
138         oper = new org.apache.axis.description.OperationDesc();
139         oper.setName("SelectByName");
140         param = new org.apache.axis.description.ParameterDesc(
141                 new javax.xml.namespace.QName(
142                         "http://tab.controls.win32lib.server.sirius.org/",
143                         "hwnd"), org.apache.axis.description.ParameterDesc.IN,
144                 new javax.xml.namespace.QName(
145                         "http://www.w3.org/2001/XMLSchema", "int"),
146                 java.lang.Integer.class, false, false);
147         param.setOmittable(true);
148         oper.addParameter(param);
149         param = new org.apache.axis.description.ParameterDesc(
150                 new javax.xml.namespace.QName(
151                         "http://tab.controls.win32lib.server.sirius.org/",
152                         "item"), org.apache.axis.description.ParameterDesc.IN,
153                 new javax.xml.namespace.QName(
154                         "http://www.w3.org/2001/XMLSchema", "string"),
155                 java.lang.String.class, false, false);
156         param.setOmittable(true);
157         param.setNillable(true);
158         oper.addParameter(param);
159         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
160         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
161         oper.setUse(org.apache.axis.constants.Use.LITERAL);
162         _operations[5] = oper;
163 
164     }
165 
166     public TabSvcPortStub() throws org.apache.axis.AxisFault {
167         this(null);
168     }
169 
170     public TabSvcPortStub(final java.net.URL endpointURL,
171             final javax.xml.rpc.Service service)
172             throws org.apache.axis.AxisFault {
173         this(service);
174         super.cachedEndpoint = endpointURL;
175     }
176 
177     public TabSvcPortStub(final javax.xml.rpc.Service service)
178             throws org.apache.axis.AxisFault {
179         if (service == null) {
180             super.service = new org.apache.axis.client.Service();
181         } else {
182             super.service = service;
183         }
184         ((org.apache.axis.client.Service) super.service)
185                 .setTypeMappingVersion("1.2");
186         java.lang.Class cls;
187         javax.xml.namespace.QName qName;
188         javax.xml.namespace.QName qName2;
189         java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
190         java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
191         java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
192         java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
193         java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
194         java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
195         java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
196         java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
197         java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
198         java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
199         qName = new javax.xml.namespace.QName(
200                 "http://schemas.microsoft.com/2003/10/Serialization/Arrays",
201                 "ArrayOfstring");
202         cachedSerQNames.add(qName);
203         cls = java.lang.String[].class;
204         cachedSerClasses.add(cls);
205         qName = new javax.xml.namespace.QName(
206                 "http://www.w3.org/2001/XMLSchema", "string");
207         qName2 = new javax.xml.namespace.QName(
208                 "http://schemas.microsoft.com/2003/10/Serialization/Arrays",
209                 "string");
210         cachedSerFactories
211                 .add(new org.apache.axis.encoding.ser.ArraySerializerFactory(
212                         qName, qName2));
213         cachedDeserFactories
214                 .add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
215 
216     }
217 
218     protected org.apache.axis.client.Call createCall()
219             throws java.rmi.RemoteException {
220         try {
221             org.apache.axis.client.Call _call = super._createCall();
222             if (super.maintainSessionSet) {
223                 _call.setMaintainSession(super.maintainSession);
224             }
225             if (super.cachedUsername != null) {
226                 _call.setUsername(super.cachedUsername);
227             }
228             if (super.cachedPassword != null) {
229                 _call.setPassword(super.cachedPassword);
230             }
231             if (super.cachedEndpoint != null) {
232                 _call.setTargetEndpointAddress(super.cachedEndpoint);
233             }
234             if (super.cachedTimeout != null) {
235                 _call.setTimeout(super.cachedTimeout);
236             }
237             if (super.cachedPortName != null) {
238                 _call.setPortName(super.cachedPortName);
239             }
240             java.util.Enumeration keys = super.cachedProperties.keys();
241             while (keys.hasMoreElements()) {
242                 java.lang.String key = (java.lang.String) keys.nextElement();
243                 _call.setProperty(key, super.cachedProperties.get(key));
244             }
245             // All the type mapping information is registered
246             // when the first call is made.
247             // The type mapping information is actually registered in
248             // the TypeMappingRegistry of the service, which
249             // is the reason why registration is only needed for the first call.
250             synchronized (this) {
251                 if (firstCall()) {
252                     // must set encoding style before registering serializers
253                     _call.setEncodingStyle(null);
254                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
255                         java.lang.Class cls = (java.lang.Class) cachedSerClasses
256                                 .get(i);
257                         javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
258                                 .get(i);
259                         java.lang.Object x = cachedSerFactories.get(i);
260                         if (x instanceof Class) {
261                             java.lang.Class sf = (java.lang.Class) cachedSerFactories
262                                     .get(i);
263                             java.lang.Class df = (java.lang.Class) cachedDeserFactories
264                                     .get(i);
265                             _call.registerTypeMapping(cls, qName, sf, df, false);
266                         } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
267                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
268                                     .get(i);
269                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
270                                     .get(i);
271                             _call.registerTypeMapping(cls, qName, sf, df, false);
272                         }
273                     }
274                 }
275             }
276             return _call;
277         } catch (java.lang.Throwable _t) {
278             throw new org.apache.axis.AxisFault(
279                     "Failure trying to get the Call object", _t);
280         }
281     }
282 
283     @Override
284     public java.lang.String[] getItemNames(final java.lang.Integer hwnd)
285             throws java.rmi.RemoteException {
286         if (super.cachedEndpoint == null) {
287             throw new org.apache.axis.NoEndPointException();
288         }
289         org.apache.axis.client.Call _call = createCall();
290         _call.setOperation(_operations[3]);
291         _call.setUseSOAPAction(true);
292         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/GetItemNames");
293         _call.setEncodingStyle(null);
294         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
295                 Boolean.FALSE);
296         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
297                 Boolean.FALSE);
298         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
299         _call.setOperationName(new javax.xml.namespace.QName(
300                 "http://tab.controls.win32lib.server.sirius.org/",
301                 "GetItemNames"));
302 
303         setRequestHeaders(_call);
304         setAttachments(_call);
305         try {
306             java.lang.Object _resp = _call
307                     .invoke(new java.lang.Object[] { hwnd });
308 
309             if (_resp instanceof java.rmi.RemoteException) {
310                 throw (java.rmi.RemoteException) _resp;
311             } else {
312                 extractAttachments(_call);
313                 try {
314                     return (java.lang.String[]) _resp;
315                 } catch (java.lang.Exception _exception) {
316                     return (java.lang.String[]) org.apache.axis.utils.JavaUtils
317                             .convert(_resp, java.lang.String[].class);
318                 }
319             }
320         } catch (org.apache.axis.AxisFault axisFaultException) {
321             throw axisFaultException;
322         }
323     }
324 
325     @Override
326     public java.lang.Integer getItemsCount(final java.lang.Integer hwnd)
327             throws java.rmi.RemoteException {
328         if (super.cachedEndpoint == null) {
329             throw new org.apache.axis.NoEndPointException();
330         }
331         org.apache.axis.client.Call _call = createCall();
332         _call.setOperation(_operations[0]);
333         _call.setUseSOAPAction(true);
334         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/GetItemsCount");
335         _call.setEncodingStyle(null);
336         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
337                 Boolean.FALSE);
338         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
339                 Boolean.FALSE);
340         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
341         _call.setOperationName(new javax.xml.namespace.QName(
342                 "http://tab.controls.win32lib.server.sirius.org/",
343                 "GetItemsCount"));
344 
345         setRequestHeaders(_call);
346         setAttachments(_call);
347         try {
348             java.lang.Object _resp = _call
349                     .invoke(new java.lang.Object[] { hwnd });
350 
351             if (_resp instanceof java.rmi.RemoteException) {
352                 throw (java.rmi.RemoteException) _resp;
353             } else {
354                 extractAttachments(_call);
355                 try {
356                     return (java.lang.Integer) _resp;
357                 } catch (java.lang.Exception _exception) {
358                     return (java.lang.Integer) org.apache.axis.utils.JavaUtils
359                             .convert(_resp, java.lang.Integer.class);
360                 }
361             }
362         } catch (org.apache.axis.AxisFault axisFaultException) {
363             throw axisFaultException;
364         }
365     }
366 
367     @Override
368     public java.lang.Integer getSelectedIndex(final java.lang.Integer hwnd)
369             throws java.rmi.RemoteException {
370         if (super.cachedEndpoint == null) {
371             throw new org.apache.axis.NoEndPointException();
372         }
373         org.apache.axis.client.Call _call = createCall();
374         _call.setOperation(_operations[1]);
375         _call.setUseSOAPAction(true);
376         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/GetSelectedIndex");
377         _call.setEncodingStyle(null);
378         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
379                 Boolean.FALSE);
380         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
381                 Boolean.FALSE);
382         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
383         _call.setOperationName(new javax.xml.namespace.QName(
384                 "http://tab.controls.win32lib.server.sirius.org/",
385                 "GetSelectedIndex"));
386 
387         setRequestHeaders(_call);
388         setAttachments(_call);
389         try {
390             java.lang.Object _resp = _call
391                     .invoke(new java.lang.Object[] { hwnd });
392 
393             if (_resp instanceof java.rmi.RemoteException) {
394                 throw (java.rmi.RemoteException) _resp;
395             } else {
396                 extractAttachments(_call);
397                 try {
398                     return (java.lang.Integer) _resp;
399                 } catch (java.lang.Exception _exception) {
400                     return (java.lang.Integer) org.apache.axis.utils.JavaUtils
401                             .convert(_resp, java.lang.Integer.class);
402                 }
403             }
404         } catch (org.apache.axis.AxisFault axisFaultException) {
405             throw axisFaultException;
406         }
407     }
408 
409     @Override
410     public java.lang.String getSelectedItem(final java.lang.Integer hwnd)
411             throws java.rmi.RemoteException {
412         if (super.cachedEndpoint == null) {
413             throw new org.apache.axis.NoEndPointException();
414         }
415         org.apache.axis.client.Call _call = createCall();
416         _call.setOperation(_operations[2]);
417         _call.setUseSOAPAction(true);
418         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/GetSelectedItem");
419         _call.setEncodingStyle(null);
420         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
421                 Boolean.FALSE);
422         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
423                 Boolean.FALSE);
424         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
425         _call.setOperationName(new javax.xml.namespace.QName(
426                 "http://tab.controls.win32lib.server.sirius.org/",
427                 "GetSelectedItem"));
428 
429         setRequestHeaders(_call);
430         setAttachments(_call);
431         try {
432             java.lang.Object _resp = _call
433                     .invoke(new java.lang.Object[] { hwnd });
434 
435             if (_resp instanceof java.rmi.RemoteException) {
436                 throw (java.rmi.RemoteException) _resp;
437             } else {
438                 extractAttachments(_call);
439                 try {
440                     return (java.lang.String) _resp;
441                 } catch (java.lang.Exception _exception) {
442                     return (java.lang.String) org.apache.axis.utils.JavaUtils
443                             .convert(_resp, java.lang.String.class);
444                 }
445             }
446         } catch (org.apache.axis.AxisFault axisFaultException) {
447             throw axisFaultException;
448         }
449     }
450 
451     @Override
452     public void selectByIndex(final java.lang.Integer hwnd,
453             final java.lang.Integer index) throws java.rmi.RemoteException {
454         if (super.cachedEndpoint == null) {
455             throw new org.apache.axis.NoEndPointException();
456         }
457         org.apache.axis.client.Call _call = createCall();
458         _call.setOperation(_operations[4]);
459         _call.setUseSOAPAction(true);
460         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/SelectByIndex");
461         _call.setEncodingStyle(null);
462         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
463                 Boolean.FALSE);
464         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
465                 Boolean.FALSE);
466         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
467         _call.setOperationName(new javax.xml.namespace.QName(
468                 "http://tab.controls.win32lib.server.sirius.org/",
469                 "SelectByIndex"));
470 
471         setRequestHeaders(_call);
472         setAttachments(_call);
473         try {
474             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
475                     hwnd, index });
476 
477             if (_resp instanceof java.rmi.RemoteException) {
478                 throw (java.rmi.RemoteException) _resp;
479             }
480             extractAttachments(_call);
481         } catch (org.apache.axis.AxisFault axisFaultException) {
482             throw axisFaultException;
483         }
484     }
485 
486     @Override
487     public void selectByName(final java.lang.Integer hwnd,
488             final java.lang.String item) throws java.rmi.RemoteException {
489         if (super.cachedEndpoint == null) {
490             throw new org.apache.axis.NoEndPointException();
491         }
492         org.apache.axis.client.Call _call = createCall();
493         _call.setOperation(_operations[5]);
494         _call.setUseSOAPAction(true);
495         _call.setSOAPActionURI("http://tab.controls.win32lib.server.sirius.org/ITabContract/SelectByName");
496         _call.setEncodingStyle(null);
497         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
498                 Boolean.FALSE);
499         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
500                 Boolean.FALSE);
501         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
502         _call.setOperationName(new javax.xml.namespace.QName(
503                 "http://tab.controls.win32lib.server.sirius.org/",
504                 "SelectByName"));
505 
506         setRequestHeaders(_call);
507         setAttachments(_call);
508         try {
509             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
510                     hwnd, item });
511 
512             if (_resp instanceof java.rmi.RemoteException) {
513                 throw (java.rmi.RemoteException) _resp;
514             }
515             extractAttachments(_call);
516         } catch (org.apache.axis.AxisFault axisFaultException) {
517             throw axisFaultException;
518         }
519     }
520 
521 }