View Javadoc

1   /**
2    * EditSvcPortStub.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.edit;
9   
10  public class EditSvcPortStub extends org.apache.axis.client.Stub implements
11          org.sirius.server.win32lib.controls.edit.IEditContract {
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("GetText");
29          param = new org.apache.axis.description.ParameterDesc(
30                  new javax.xml.namespace.QName(
31                          "http://edit.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", "string"));
40          oper.setReturnClass(java.lang.String.class);
41          oper.setReturnQName(new javax.xml.namespace.QName(
42                  "http://edit.controls.win32lib.server.sirius.org/",
43                  "GetTextResult"));
44          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
45          oper.setUse(org.apache.axis.constants.Use.LITERAL);
46          _operations[0] = oper;
47  
48          oper = new org.apache.axis.description.OperationDesc();
49          oper.setName("SetText");
50          param = new org.apache.axis.description.ParameterDesc(
51                  new javax.xml.namespace.QName(
52                          "http://edit.controls.win32lib.server.sirius.org/",
53                          "hwnd"), org.apache.axis.description.ParameterDesc.IN,
54                  new javax.xml.namespace.QName(
55                          "http://www.w3.org/2001/XMLSchema", "int"),
56                  java.lang.Integer.class, false, false);
57          param.setOmittable(true);
58          oper.addParameter(param);
59          param = new org.apache.axis.description.ParameterDesc(
60                  new javax.xml.namespace.QName(
61                          "http://edit.controls.win32lib.server.sirius.org/",
62                          "text"), org.apache.axis.description.ParameterDesc.IN,
63                  new javax.xml.namespace.QName(
64                          "http://www.w3.org/2001/XMLSchema", "string"),
65                  java.lang.String.class, false, false);
66          param.setOmittable(true);
67          param.setNillable(true);
68          oper.addParameter(param);
69          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
70          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
71          oper.setUse(org.apache.axis.constants.Use.LITERAL);
72          _operations[1] = oper;
73  
74          oper = new org.apache.axis.description.OperationDesc();
75          oper.setName("TypeText");
76          param = new org.apache.axis.description.ParameterDesc(
77                  new javax.xml.namespace.QName(
78                          "http://edit.controls.win32lib.server.sirius.org/",
79                          "hwnd"), org.apache.axis.description.ParameterDesc.IN,
80                  new javax.xml.namespace.QName(
81                          "http://www.w3.org/2001/XMLSchema", "int"),
82                  java.lang.Integer.class, false, false);
83          param.setOmittable(true);
84          oper.addParameter(param);
85          param = new org.apache.axis.description.ParameterDesc(
86                  new javax.xml.namespace.QName(
87                          "http://edit.controls.win32lib.server.sirius.org/",
88                          "text"), org.apache.axis.description.ParameterDesc.IN,
89                  new javax.xml.namespace.QName(
90                          "http://www.w3.org/2001/XMLSchema", "string"),
91                  java.lang.String.class, false, false);
92          param.setOmittable(true);
93          param.setNillable(true);
94          oper.addParameter(param);
95          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
96          oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
97          oper.setUse(org.apache.axis.constants.Use.LITERAL);
98          _operations[2] = oper;
99  
100         oper = new org.apache.axis.description.OperationDesc();
101         oper.setName("SetCursorPosition");
102         param = new org.apache.axis.description.ParameterDesc(
103                 new javax.xml.namespace.QName(
104                         "http://edit.controls.win32lib.server.sirius.org/",
105                         "hwnd"), org.apache.axis.description.ParameterDesc.IN,
106                 new javax.xml.namespace.QName(
107                         "http://www.w3.org/2001/XMLSchema", "int"),
108                 java.lang.Integer.class, false, false);
109         param.setOmittable(true);
110         oper.addParameter(param);
111         param = new org.apache.axis.description.ParameterDesc(
112                 new javax.xml.namespace.QName(
113                         "http://edit.controls.win32lib.server.sirius.org/",
114                         "col"), org.apache.axis.description.ParameterDesc.IN,
115                 new javax.xml.namespace.QName(
116                         "http://www.w3.org/2001/XMLSchema", "int"),
117                 java.lang.Integer.class, false, false);
118         param.setOmittable(true);
119         oper.addParameter(param);
120         param = new org.apache.axis.description.ParameterDesc(
121                 new javax.xml.namespace.QName(
122                         "http://edit.controls.win32lib.server.sirius.org/",
123                         "row"), org.apache.axis.description.ParameterDesc.IN,
124                 new javax.xml.namespace.QName(
125                         "http://www.w3.org/2001/XMLSchema", "int"),
126                 java.lang.Integer.class, false, false);
127         param.setOmittable(true);
128         oper.addParameter(param);
129         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
130         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
131         oper.setUse(org.apache.axis.constants.Use.LITERAL);
132         _operations[3] = oper;
133 
134         oper = new org.apache.axis.description.OperationDesc();
135         oper.setName("SetSelection");
136         param = new org.apache.axis.description.ParameterDesc(
137                 new javax.xml.namespace.QName(
138                         "http://edit.controls.win32lib.server.sirius.org/",
139                         "hwnd"), org.apache.axis.description.ParameterDesc.IN,
140                 new javax.xml.namespace.QName(
141                         "http://www.w3.org/2001/XMLSchema", "int"),
142                 java.lang.Integer.class, false, false);
143         param.setOmittable(true);
144         oper.addParameter(param);
145         param = new org.apache.axis.description.ParameterDesc(
146                 new javax.xml.namespace.QName(
147                         "http://edit.controls.win32lib.server.sirius.org/",
148                         "scol"), org.apache.axis.description.ParameterDesc.IN,
149                 new javax.xml.namespace.QName(
150                         "http://www.w3.org/2001/XMLSchema", "int"),
151                 java.lang.Integer.class, false, false);
152         param.setOmittable(true);
153         oper.addParameter(param);
154         param = new org.apache.axis.description.ParameterDesc(
155                 new javax.xml.namespace.QName(
156                         "http://edit.controls.win32lib.server.sirius.org/",
157                         "srow"), org.apache.axis.description.ParameterDesc.IN,
158                 new javax.xml.namespace.QName(
159                         "http://www.w3.org/2001/XMLSchema", "int"),
160                 java.lang.Integer.class, false, false);
161         param.setOmittable(true);
162         oper.addParameter(param);
163         param = new org.apache.axis.description.ParameterDesc(
164                 new javax.xml.namespace.QName(
165                         "http://edit.controls.win32lib.server.sirius.org/",
166                         "ecol"), org.apache.axis.description.ParameterDesc.IN,
167                 new javax.xml.namespace.QName(
168                         "http://www.w3.org/2001/XMLSchema", "int"),
169                 java.lang.Integer.class, false, false);
170         param.setOmittable(true);
171         oper.addParameter(param);
172         param = new org.apache.axis.description.ParameterDesc(
173                 new javax.xml.namespace.QName(
174                         "http://edit.controls.win32lib.server.sirius.org/",
175                         "erow"), org.apache.axis.description.ParameterDesc.IN,
176                 new javax.xml.namespace.QName(
177                         "http://www.w3.org/2001/XMLSchema", "int"),
178                 java.lang.Integer.class, false, false);
179         param.setOmittable(true);
180         oper.addParameter(param);
181         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
182         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
183         oper.setUse(org.apache.axis.constants.Use.LITERAL);
184         _operations[4] = oper;
185 
186         oper = new org.apache.axis.description.OperationDesc();
187         oper.setName("GetSelectedText");
188         param = new org.apache.axis.description.ParameterDesc(
189                 new javax.xml.namespace.QName(
190                         "http://edit.controls.win32lib.server.sirius.org/",
191                         "hwnd"), org.apache.axis.description.ParameterDesc.IN,
192                 new javax.xml.namespace.QName(
193                         "http://www.w3.org/2001/XMLSchema", "int"),
194                 java.lang.Integer.class, false, false);
195         param.setOmittable(true);
196         oper.addParameter(param);
197         oper.setReturnType(new javax.xml.namespace.QName(
198                 "http://www.w3.org/2001/XMLSchema", "string"));
199         oper.setReturnClass(java.lang.String.class);
200         oper.setReturnQName(new javax.xml.namespace.QName(
201                 "http://edit.controls.win32lib.server.sirius.org/",
202                 "GetSelectedTextResult"));
203         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
204         oper.setUse(org.apache.axis.constants.Use.LITERAL);
205         _operations[5] = oper;
206 
207     }
208 
209     public EditSvcPortStub() throws org.apache.axis.AxisFault {
210         this(null);
211     }
212 
213     public EditSvcPortStub(final java.net.URL endpointURL,
214             final javax.xml.rpc.Service service)
215             throws org.apache.axis.AxisFault {
216         this(service);
217         super.cachedEndpoint = endpointURL;
218     }
219 
220     public EditSvcPortStub(final javax.xml.rpc.Service service)
221             throws org.apache.axis.AxisFault {
222         if (service == null) {
223             super.service = new org.apache.axis.client.Service();
224         } else {
225             super.service = service;
226         }
227         ((org.apache.axis.client.Service) super.service)
228                 .setTypeMappingVersion("1.2");
229     }
230 
231     protected org.apache.axis.client.Call createCall()
232             throws java.rmi.RemoteException {
233         try {
234             org.apache.axis.client.Call _call = super._createCall();
235             if (super.maintainSessionSet) {
236                 _call.setMaintainSession(super.maintainSession);
237             }
238             if (super.cachedUsername != null) {
239                 _call.setUsername(super.cachedUsername);
240             }
241             if (super.cachedPassword != null) {
242                 _call.setPassword(super.cachedPassword);
243             }
244             if (super.cachedEndpoint != null) {
245                 _call.setTargetEndpointAddress(super.cachedEndpoint);
246             }
247             if (super.cachedTimeout != null) {
248                 _call.setTimeout(super.cachedTimeout);
249             }
250             if (super.cachedPortName != null) {
251                 _call.setPortName(super.cachedPortName);
252             }
253             java.util.Enumeration keys = super.cachedProperties.keys();
254             while (keys.hasMoreElements()) {
255                 java.lang.String key = (java.lang.String) keys.nextElement();
256                 _call.setProperty(key, super.cachedProperties.get(key));
257             }
258             return _call;
259         } catch (java.lang.Throwable _t) {
260             throw new org.apache.axis.AxisFault(
261                     "Failure trying to get the Call object", _t);
262         }
263     }
264 
265     @Override
266     public java.lang.String getSelectedText(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[5]);
273         _call.setUseSOAPAction(true);
274         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/GetSelectedText");
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://edit.controls.win32lib.server.sirius.org/",
283                 "GetSelectedText"));
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.String) _resp;
297                 } catch (java.lang.Exception _exception) {
298                     return (java.lang.String) org.apache.axis.utils.JavaUtils
299                             .convert(_resp, java.lang.String.class);
300                 }
301             }
302         } catch (org.apache.axis.AxisFault axisFaultException) {
303             throw axisFaultException;
304         }
305     }
306 
307     @Override
308     public java.lang.String getText(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[0]);
315         _call.setUseSOAPAction(true);
316         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/GetText");
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://edit.controls.win32lib.server.sirius.org/", "GetText"));
325 
326         setRequestHeaders(_call);
327         setAttachments(_call);
328         try {
329             java.lang.Object _resp = _call
330                     .invoke(new java.lang.Object[] { hwnd });
331 
332             if (_resp instanceof java.rmi.RemoteException) {
333                 throw (java.rmi.RemoteException) _resp;
334             } else {
335                 extractAttachments(_call);
336                 try {
337                     return (java.lang.String) _resp;
338                 } catch (java.lang.Exception _exception) {
339                     return (java.lang.String) org.apache.axis.utils.JavaUtils
340                             .convert(_resp, java.lang.String.class);
341                 }
342             }
343         } catch (org.apache.axis.AxisFault axisFaultException) {
344             throw axisFaultException;
345         }
346     }
347 
348     @Override
349     public void setCursorPosition(final java.lang.Integer hwnd,
350             final java.lang.Integer col, final java.lang.Integer row)
351             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[3]);
357         _call.setUseSOAPAction(true);
358         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/SetCursorPosition");
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://edit.controls.win32lib.server.sirius.org/",
367                 "SetCursorPosition"));
368 
369         setRequestHeaders(_call);
370         setAttachments(_call);
371         try {
372             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
373                     hwnd, col, row });
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     @Override
385     public void setSelection(final java.lang.Integer hwnd,
386             final java.lang.Integer scol, final java.lang.Integer srow,
387             final java.lang.Integer ecol, final java.lang.Integer erow)
388             throws java.rmi.RemoteException {
389         if (super.cachedEndpoint == null) {
390             throw new org.apache.axis.NoEndPointException();
391         }
392         org.apache.axis.client.Call _call = createCall();
393         _call.setOperation(_operations[4]);
394         _call.setUseSOAPAction(true);
395         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/SetSelection");
396         _call.setEncodingStyle(null);
397         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
398                 Boolean.FALSE);
399         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
400                 Boolean.FALSE);
401         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
402         _call.setOperationName(new javax.xml.namespace.QName(
403                 "http://edit.controls.win32lib.server.sirius.org/",
404                 "SetSelection"));
405 
406         setRequestHeaders(_call);
407         setAttachments(_call);
408         try {
409             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
410                     hwnd, scol, srow, ecol, erow });
411 
412             if (_resp instanceof java.rmi.RemoteException) {
413                 throw (java.rmi.RemoteException) _resp;
414             }
415             extractAttachments(_call);
416         } catch (org.apache.axis.AxisFault axisFaultException) {
417             throw axisFaultException;
418         }
419     }
420 
421     @Override
422     public void setText(final java.lang.Integer hwnd,
423             final java.lang.String text) throws java.rmi.RemoteException {
424         if (super.cachedEndpoint == null) {
425             throw new org.apache.axis.NoEndPointException();
426         }
427         org.apache.axis.client.Call _call = createCall();
428         _call.setOperation(_operations[1]);
429         _call.setUseSOAPAction(true);
430         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/SetText");
431         _call.setEncodingStyle(null);
432         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
433                 Boolean.FALSE);
434         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
435                 Boolean.FALSE);
436         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
437         _call.setOperationName(new javax.xml.namespace.QName(
438                 "http://edit.controls.win32lib.server.sirius.org/", "SetText"));
439 
440         setRequestHeaders(_call);
441         setAttachments(_call);
442         try {
443             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
444                     hwnd, text });
445 
446             if (_resp instanceof java.rmi.RemoteException) {
447                 throw (java.rmi.RemoteException) _resp;
448             }
449             extractAttachments(_call);
450         } catch (org.apache.axis.AxisFault axisFaultException) {
451             throw axisFaultException;
452         }
453     }
454 
455     @Override
456     public void typeText(final java.lang.Integer hwnd,
457             final java.lang.String text) throws java.rmi.RemoteException {
458         if (super.cachedEndpoint == null) {
459             throw new org.apache.axis.NoEndPointException();
460         }
461         org.apache.axis.client.Call _call = createCall();
462         _call.setOperation(_operations[2]);
463         _call.setUseSOAPAction(true);
464         _call.setSOAPActionURI("http://edit.controls.win32lib.server.sirius.org/IEditContract/TypeText");
465         _call.setEncodingStyle(null);
466         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
467                 Boolean.FALSE);
468         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
469                 Boolean.FALSE);
470         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
471         _call.setOperationName(new javax.xml.namespace.QName(
472                 "http://edit.controls.win32lib.server.sirius.org/", "TypeText"));
473 
474         setRequestHeaders(_call);
475         setAttachments(_call);
476         try {
477             java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
478                     hwnd, text });
479 
480             if (_resp instanceof java.rmi.RemoteException) {
481                 throw (java.rmi.RemoteException) _resp;
482             }
483             extractAttachments(_call);
484         } catch (org.apache.axis.AxisFault axisFaultException) {
485             throw axisFaultException;
486         }
487     }
488 
489 }